/* ============================================================
   Widget Oferte Speciale (homepage)
   Layout hibrid: Hero stânga + Grid 2×2 dreapta
   Variabilă --ws-color setată inline (culoarea campaniei)
   ============================================================ */

.ws-section {
    padding: 32px 0;
}

.ws-card {
    position: relative;
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 24px;
    align-items: stretch;
    background: linear-gradient(135deg, var(--ws-color) 0%, color-mix(in srgb, var(--ws-color) 75%, #000) 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(204, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #fff;
}

/* Pattern decorativ subtil pe hero */
.ws-card::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* ─── HERO (stânga) ─── */
.ws-hero {
    position: relative;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ws-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.92);
    margin-bottom: 12px;
}

.ws-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
    animation: ws-pulse 1.6s infinite;
}
@keyframes ws-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
    70%  { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.ws-title {
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 12px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.ws-meta {
    font-size: 16px;
    line-height: 1.4;
    color: rgba(255,255,255,0.95);
    margin-bottom: 20px;
}
.ws-meta strong {
    font-weight: 800;
    font-size: 19px;
    color: #fff;
}

/* ─── Countdown ─── */
.ws-countdown {
    margin: 8px 0 24px;
}
.ws-countdown-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.ws-countdown-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 80px));
    gap: 8px;
}
.ws-cd-cell {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ws-cd-num {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.ws-cd-lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255,255,255,0.85);
}

/* ─── CTA ─── */
.ws-cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: #fff;
    color: var(--ws-color);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.ws-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.22);
    text-decoration: none;
}

/* ─── GRID 2×2 (dreapta) ─── */
.ws-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    padding: 20px;
}

.ws-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #1a1a1a;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.ws-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    text-decoration: none;
}

.ws-tile-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}
.ws-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.ws-tile:hover .ws-tile-img img {
    transform: scale(1.06);
}

.ws-tile-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--ws-color);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    letter-spacing: 0.3px;
}

.ws-tile-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.ws-tile-tara {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6b7280;
    font-weight: 600;
}
.ws-tile-titlu {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ws-tile-pret {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    padding-top: 4px;
}
.ws-pret-old {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
}
.ws-pret-new {
    font-size: 15px;
    font-weight: 800;
    color: var(--ws-color);
}

/* ─── Tabletă ─── */
@media (max-width: 1024px) {
    .ws-card { grid-template-columns: 1fr; }
    .ws-hero { padding: 28px 24px 20px; }
    .ws-title { font-size: 28px; }
    .ws-grid { padding: 0 16px 20px; }
}

/* ─── Mobil ─── */
@media (max-width: 640px) {
    .ws-section { padding: 20px 0; }
    .ws-hero { padding: 24px 20px 16px; }
    .ws-title { font-size: 24px; }
    .ws-meta { font-size: 14px; }
    .ws-meta strong { font-size: 16px; }
    .ws-countdown-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ws-cd-num { font-size: 20px; }
    .ws-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 10px;
        padding: 0 12px 16px;
    }
    .ws-tile-body { padding: 8px 10px 10px; }
    .ws-tile-titlu { font-size: 12px; }
    .ws-pret-new { font-size: 14px; }
    .ws-cta { width: 100%; justify-content: center; }
}
