/* ================================================================
   Natu Product Carousel — CSS
   Matches lahorefurniture.pk product carousel design exactly
   ================================================================ */

/* ── Section ─────────────────────────────────────────────────── */
.npc-section {
    background-color: #f0ebe4;
    padding: 60px 40px;
}
.npc-section__head { margin-bottom: 40px; }
.npc-heading {
    color: #1a0a02;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}
.npc-subheading {
    color: #6b5a4e;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* ── Carousel Wrapper ────────────────────────────────────────── */
.npc-carousel-wrap { position: relative; }

.npc-track-outer {
    overflow: hidden;
    width: 100%;
}

.npc-track {
    display: flex;
    align-items: stretch;
    transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}

.npc-slide {
    flex: 0 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

/* ── Product Card ────────────────────────────────────────────── */
.npc-card {
    background: #ffffff;
    border-radius: 0;
    overflow: visible;
    cursor: pointer;
}

/* ── Image Wrap ──────────────────────────────────────────────── */
.npc-card__img-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 220px;
    background: #e8ddd4;
}

.npc-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.npc-card:hover .npc-card__img-wrap img {
    transform: scale(1.04);
}

/* ── Discount Badge ──────────────────────────────────────────── */
.npc-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background-color: #e53935;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 50px;
    line-height: 1;
    pointer-events: none;
}

/* ── Hover Overlay ───────────────────────────────────────────── */
.npc-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    background-color: rgba(0,0,0,0.28);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.npc-card:hover .npc-card__overlay {
    opacity: 1;
}

/* Quick View icon — top right */
.npc-qv-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.90);
    color: #1a0a02;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.npc-qv-btn:hover {
    background-color: #ffffff;
    transform: scale(1.1);
}
.npc-qv-btn svg {
    display: block;
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

/* Add To Cart button — centred on image */
.npc-atc-btn {
    background-color: #B8763A;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s ease, transform 0.2s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
}
.npc-atc-btn:hover {
    background-color: #8f5520;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ── Card Info ───────────────────────────────────────────────── */
.npc-card__info {
    padding: 14px 4px 4px;
    background: transparent;
}

.npc-brand {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9a8070;
    margin-bottom: 6px;
}

.npc-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 8px;
}

.npc-title a {
    color: #1a0a02;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.npc-title a:hover { color: #B8763A; }

.npc-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.npc-price-sale {
    color: #1a0a02;
    font-size: 15px;
    font-weight: 700;
}

.npc-price-original {
    color: #9a8070;
    font-size: 13px;
    font-weight: 400;
    text-decoration: line-through;
}

/* ── Controls Row ────────────────────────────────────────────── */
.npc-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    gap: 16px;
}

/* ── Progress Bar ────────────────────────────────────────────── */
.npc-progress-wrap {
    flex: 1 1 auto;
}

.npc-progress-track {
    width: 100%;
    height: 2px;
    background-color: #d4c4b4;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.npc-progress-fill {
    height: 2px;
    background-color: #1a0a02;
    border-radius: 2px;
    width: 0%;
    transition: width 0.4s ease;
}

/* ── Arrows ──────────────────────────────────────────────────── */
.npc-arrows {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.npc-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #d4c4b4;
    background-color: #ffffff;
    color: #1a0a02;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    padding: 0;
    flex-shrink: 0;
    /* Ensure SVG children fill proportionally */
    position: relative;
}

.npc-arrow svg {
    display: block;
    /* Use em so Elementor font-size control on .npc-arrow scales this */
    width: 1.15em;
    height: 1.15em;
    min-width: 12px;
    min-height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    flex-shrink: 0;
}

/* Elementor wraps SVG in a span sometimes */
.npc-arrow span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15em;
    height: 1.15em;
}
.npc-arrow span svg { width: 100%; height: 100%; }

.npc-arrow:hover {
    background-color: #B8763A;
    border-color: #B8763A;
    color: #ffffff;
    transform: scale(1.05);
}

.npc-arrow:disabled,
.npc-arrow.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

/* ── Empty state ─────────────────────────────────────────────── */
.npc-empty {
    padding: 40px;
    text-align: center;
    color: #9a8070;
    font-size: 14px;
    background: #f7f2ec;
    border-radius: 8px;
    border: 1px dashed #d4c4b4;
}

/* ── Hidden utility ──────────────────────────────────────────── */
.npc-hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET ≤900px
═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .npc-section { padding: 48px 24px; }
    .npc-heading { font-size: 26px; }
    .npc-card__img-wrap { height: 180px; }
    .npc-atc-btn { padding: 10px 20px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE ≤600px
═══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .npc-section { padding: 40px 16px; }
    .npc-heading { font-size: 22px; }
    .npc-card__img-wrap { height: 220px; }
    .npc-controls { flex-direction: column; align-items: flex-start; gap: 16px; }
    .npc-progress-wrap { width: 100%; }
    .npc-arrows { align-self: flex-end; }
}
