/* ============================================================
   Weleda £5 Friday Sale — Frontend Styles
   ============================================================ */

/* ── Friday Page Wrapper ── */
.wfs-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 40px;
    font-family: inherit;
}

/* ── Page Header ── */
.wfs-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #1a5c38;
    color: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.wfs-page-title-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}
.wfs-page-leaf {
    font-size: 52px;
    line-height: 1;
    flex-shrink: 0;
}
.wfs-page-title {
    margin: 0 0 6px !important;
    font-size: clamp(20px, 3vw, 28px) !important;
    color: #fff !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}
.wfs-page-sub {
    margin: 0;
    opacity: .85;
    font-size: 15px;
}

/* ── Countdown ── */
.wfs-page-cd {
    text-align: center;
    background: rgba(255,255,255,.15);
    border-radius: 10px;
    padding: 12px 22px;
    flex-shrink: 0;
}
.wfs-cd-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .8;
    margin-bottom: 4px;
    display: block;
}
.wfs-cd-timer {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    font-variant-numeric: tabular-nums;
}

/* ── Status Bar ── */
.wfs-page-status {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 28px;
}
.wfs-page-status.active {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}
.wfs-page-status.upcoming {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
}

/* ── Product Grid ── */
.wfs-grid {
    display: grid;
    gap: 22px;
}
.wfs-cols-1 { grid-template-columns: 1fr; }
.wfs-cols-2 { grid-template-columns: repeat(2, 1fr); }
.wfs-cols-3 { grid-template-columns: repeat(3, 1fr); }
.wfs-cols-4 { grid-template-columns: repeat(4, 1fr); }
.wfs-cols-5 { grid-template-columns: repeat(5, 1fr); }
.wfs-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 900px) {
    .wfs-cols-4, .wfs-cols-5, .wfs-cols-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
    .wfs-cols-3, .wfs-cols-4, .wfs-cols-5, .wfs-cols-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 440px) {
    .wfs-grid { grid-template-columns: 1fr !important; }
}

/* ── Product Card ── */
.wfs-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.wfs-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    transform: translateY(-3px);
}
.wfs-card-active {
    border-color: #6ee7b7;
    box-shadow: 0 2px 12px rgba(26,92,56,.12);
}

/* ── Savings Ribbon ── */
.wfs-ribbon {
    position: absolute;
    top: 12px;
    right: -1px;
    background: #d97706;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px 4px 12px;
    border-radius: 4px 0 0 4px;
    text-transform: uppercase;
    letter-spacing: .03em;
    z-index: 2;
}
.wfs-ribbon::before {
    content: '';
    position: absolute;
    right: 0; bottom: -5px;
    border-width: 5px 0 0 5px;
    border-style: solid;
    border-color: #92400e transparent transparent transparent;
}

/* ── Card Image ── */
.wfs-card-img-link {
    display: block;
    overflow: hidden;
    background: #f9fafb;
    aspect-ratio: 1;
}
.wfs-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    transition: transform .3s;
}
.wfs-card:hover .wfs-card-img { transform: scale(1.04); }

/* ── Card Body ── */
.wfs-card-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.wfs-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wfs-card-name:hover { color: #1a5c38; }
.wfs-card-sku { font-size: 11px; color: #9ca3af; margin: 0; }

/* ── Pricing ── */
.wfs-card-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 8px;
}
.wfs-card-rrp {
    font-size: 12px;
    color: #9ca3af;
}
.wfs-card-rrp del { text-decoration: line-through; }
.wfs-card-price {
    font-size: 20px;
    font-weight: 800;
    color: #6b7280;
}
.wfs-card-price.live {
    color: #1a5c38;
}

/* ── Add to Cart Button ── */
.wfs-card-btn {
    display: block;
    background: #1a5c38;
    color: #fff !important;
    text-align: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    margin-top: 10px;
    transition: background .15s, transform .1s;
}
.wfs-card-btn:hover {
    background: #145230;
    transform: translateY(-1px);
}
.wfs-card-btn-outline {
    background: transparent;
    border: 2px solid #1a5c38;
    color: #1a5c38 !important;
}
.wfs-card-btn-outline:hover {
    background: #1a5c38;
    color: #fff !important;
}

/* ── Page Footer ── */
.wfs-page-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}
.wfs-page-footer p { margin: 4px 0; }
.wfs-copyright {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: .04em;
    margin-top: 8px !important;
}

/* ── No products message ── */
.wfs-no-products {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px dashed #d1d5db;
}

/* ── WooCommerce shop/archive price override ── */
.wfs-price-wrap ins {
    text-decoration: none;
    font-weight: 700;
    color: #1a5c38;
}
.wfs-save-badge {
    display: inline-block;
    background: #d97706;
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 6px;
}
