/* OLS Smart Feed - unique class names to prevent theme conflicts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

/* ── Grid ─────────────────────────────────────────────── */
.olsf-grid {
    display: grid !important;
    gap: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-family: 'DM Sans', sans-serif;
}
.olsf-c1 { grid-template-columns: 1fr !important; }
.olsf-c2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.olsf-c3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.olsf-c4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

/* ── Card ─────────────────────────────────────────────── */
.olsf-card {
    background: #ffffff !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 16px rgba(0,0,0,.08) !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: transform .2s, box-shadow .2s;
}
.olsf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.13) !important;
}

/* ── Card image ───────────────────────────────────────── */
.olsf-card-img {
    position: relative !important;
    height: 200px !important;
    background: #f0f2f5 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}
.olsf-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform .3s;
}
.olsf-card:hover .olsf-card-img img { transform: scale(1.04); }
.olsf-img-ph { font-size: 52px; opacity: .3; }

.olsf-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .3px;
}
.olsf-disc {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e53935;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Card body ────────────────────────────────────────── */
.olsf-card-body {
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    flex: 1 !important;
}
.olsf-brand {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #aaa;
    margin: 0;
}
.olsf-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 !important;
    line-height: 1.35 !important;
}
.olsf-title a {
    color: #111 !important;
    text-decoration: none !important;
}
.olsf-title a:hover { color: #5b4fff !important; }

/* ── Coupon ───────────────────────────────────────────── */
.olsf-coupon {
    background: #f0fff4;
    border: 2px dashed #2ed573;
    border-radius: 8px;
    padding: 8px 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 8px;
}
.olsf-coupon-code {
    font-family: monospace;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    letter-spacing: 2px;
}
.olsf-coupon-copy {
    font-size: 11px;
    color: #2e7d32;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Pricing ──────────────────────────────────────────── */
.olsf-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.olsf-price-sale {
    font-size: 21px !important;
    font-weight: 800 !important;
    color: #e53935 !important;
}
.olsf-price-orig {
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
}
.olsf-expires { font-size: 12px; color: #f39c12; font-weight: 600; }
.olsf-store-count { font-size: 12px; color: #888; }

/* ── Actions ──────────────────────────────────────────── */
.olsf-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}
.olsf-btn {
    display: block !important;
    background: #5b4fff !important;
    color: #fff !important;
    text-align: center !important;
    padding: 11px 14px !important;
    border-radius: 9px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-family: 'DM Sans', sans-serif;
    transition: background .15s;
}
.olsf-btn:hover {
    background: #4a3dee !important;
    color: #fff !important;
}

/* ── Mini store list ──────────────────────────────────── */
.olsf-stores {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.olsf-store {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    background: #f8f9fa;
    color: #333;
    transition: all .1s;
}
.olsf-store:hover { background: #5b4fff; color: #fff; }
.olsf-store em { font-style: normal; font-weight: 800; }

/* ── Search ───────────────────────────────────────────── */
.olsf-search-wrap {
    position: relative;
    margin-bottom: 24px;
    font-family: 'DM Sans', sans-serif;
}
.olsf-search-hero {
    padding: 52px 24px;
    background: linear-gradient(135deg, #0f0c2e, #1a1040);
    border-radius: 18px;
    text-align: center;
}
.olsf-search-inner {
    display: flex;
    background: #fff;
    border-radius: 11px;
    overflow: hidden;
    box-shadow: 0 3px 16px rgba(0,0,0,.1);
}
.olsf-search-hero .olsf-search-inner {
    max-width: 580px;
    margin: 0 auto;
}
.olsf-search-icon {
    padding: 0 14px;
    font-size: 17px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.olsf-search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    padding: 13px 0;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    background: transparent;
    min-width: 0;
    box-shadow: none !important;
}
.olsf-search-results { margin-top: 16px; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
    .olsf-c4 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 768px) {
    .olsf-c3,
    .olsf-c4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 480px) {
    .olsf-c2,
    .olsf-c3,
    .olsf-c4 { grid-template-columns: 1fr !important; }
    .olsf-card-img { height: 180px !important; }
}
