/* ═══════════════════════════════════════
   קופונים נתיבותי — Frontend CSS v2
   עמוד אחד — הכל מוצג, בלי לחיצה פנימה
   ═══════════════════════════════════════ */

.ntc-page-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    direction: rtl;
}

/* Header */
.ntc-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.ntc-page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
}

.ntc-page-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* List — stacked full-width cards */
.ntc-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Card — horizontal layout */
.ntc-coupon-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: row;
    transition: box-shadow 0.2s;
}

.ntc-coupon-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Image — right side */
.ntc-coupon-image {
    position: relative;
    width: 280px;
    min-height: 240px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f0f0f0;
}

.ntc-coupon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ntc-coupon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    color: #bbb;
}

/* Tag badge */
.ntc-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    z-index: 2;
}

.ntc-tag-hot       { background: #e24b4a; }
.ntc-tag-new       { background: #25b84c; }
.ntc-tag-limited   { background: #e8930c; }
.ntc-tag-exclusive { background: #7f57dd; }

/* Coupon cut — vertical separator */
.ntc-coupon-cut {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 24px;
    flex-shrink: 0;
    background: #fff;
    position: relative;
    padding: 0;
}

.ntc-cut-left,
.ntc-cut-right {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f5f5f5;
    flex-shrink: 0;
}

.ntc-cut-left  { margin-top: -12px; }
.ntc-cut-right { margin-bottom: -12px; }

.ntc-cut-line {
    flex: 1;
    width: 0;
    border-right: 2px dashed #ddd;
}

/* Body — left side */
.ntc-coupon-body {
    padding: 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.ntc-discount {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.ntc-discount-value {
    font-size: 34px;
    font-weight: 800;
    color: #1a73e8;
    line-height: 1;
}

.ntc-discount-label {
    font-size: 16px;
    color: #666;
}

.ntc-coupon-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.4;
}

.ntc-coupon-desc {
    font-size: 15px;
    color: #555;
    margin: 0 0 18px;
    line-height: 1.7;
}

/* WhatsApp button */
.ntc-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: #25D366;
    color: #fff !important;
    border-radius: 10px;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    align-self: flex-start;
}

.ntc-wa-btn:hover {
    background: #1fb855;
    color: #fff !important;
    text-decoration: none !important;
}

.ntc-wa-btn:active {
    transform: scale(0.98);
}

.ntc-wa-btn svg {
    flex-shrink: 0;
}

/* Meta */
.ntc-coupon-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    font-size: 13px;
    color: #999;
}

.ntc-coupon-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Empty */
.ntc-empty {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #999;
}

/* ───────────────────────
   Mobile — stack vertically
   ─────────────────────── */
@media (max-width: 700px) {
    .ntc-coupon-card {
        flex-direction: column;
    }

    .ntc-coupon-image {
        width: 100%;
        height: 200px;
        min-height: auto;
    }

    /* Switch cut from vertical to horizontal */
    .ntc-coupon-cut {
        flex-direction: row;
        width: 100%;
        height: 24px;
        padding: 0;
    }

    .ntc-cut-left,
    .ntc-cut-right {
        width: 24px;
        height: 24px;
    }

    .ntc-cut-left  { margin-top: 0; margin-right: -12px; }
    .ntc-cut-right { margin-bottom: 0; margin-left: -12px; }

    .ntc-cut-line {
        flex: 1;
        width: auto;
        height: 0;
        border-right: none;
        border-top: 2px dashed #ddd;
    }

    .ntc-coupon-body {
        padding: 20px 22px 24px;
    }

    .ntc-wa-btn {
        width: 100%;
        justify-content: center;
        align-self: stretch;
    }

    .ntc-page-title { font-size: 26px; }
    .ntc-discount-value { font-size: 28px; }
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
    .ntc-coupon-card { background: #1e1e2e; }
    .ntc-page-title { color: #eee; }
    .ntc-page-subtitle { color: #aaa; }
    .ntc-coupon-title { color: #eee; }
    .ntc-coupon-desc { color: #bbb; }
    .ntc-coupon-cut { background: #1e1e2e; }
    .ntc-cut-left, .ntc-cut-right { background: #121212; }
    .ntc-cut-line { border-color: #333; }
    .ntc-coupon-placeholder { background: linear-gradient(135deg, #2a2a3a, #1e1e2e); color: #555; }
}

/* ───────────────────────
   Zoom icon on image
   ─────────────────────── */
.ntc-lightbox-trigger {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: zoom-in;
}

.ntc-lightbox-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ntc-zoom-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.ntc-lightbox-trigger:hover .ntc-zoom-icon,
.ntc-coupon-image:hover .ntc-zoom-icon {
    opacity: 1;
}

/* mobile — always show */
@media (max-width: 700px) {
    .ntc-zoom-icon { opacity: 0.7; }
}

/* ───────────────────────
   Lightbox overlay
   ─────────────────────── */
.ntc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ntc-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s;
    line-height: 1;
}

.ntc-lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

.ntc-lightbox-body {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}

#ntc-lightbox-img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    transform-origin: center center;
    transition: transform 0.15s ease-out;
    user-select: none;
    -webkit-user-select: none;
}
