/* ── PRODUCTS PAGE LOCAL STYLES ── */
:root {
    --prod-bg: #09090f;
    --prod-surface: #111118;
    --prod-border: rgba(255, 255, 255, 0.07);
    --prod-primary: #F26B0F;
}

body {
    background: var(--prod-bg);
    color: #e0e0ef;
    font-family: 'Cairo', sans-serif;
    min-height: 100vh;
}

/* HERO */
.prod-hero {
    background: linear-gradient(135deg, #0d0d1a 0%, #1a1035 50%, #0d0d1a 100%);
    padding: 130px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.prod-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(242, 107, 15, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.prod-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.prod-hero h1 span {
    color: var(--prod-primary);
}

.prod-hero p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto;
}

.prod-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(242, 107, 15, 0.12);
    border: 1px solid rgba(242, 107, 15, 0.3);
    color: var(--prod-primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* CONTAINER */
.products-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* FILTERS */
.prod-filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 28px 0 24px;
    border-bottom: 1px solid var(--prod-border);
    margin-bottom: 32px;
}

.prod-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--prod-border);
    background: var(--prod-surface);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.prod-filter-btn:hover {
    border-color: rgba(242, 107, 15, 0.4);
    color: #fff;
}

.prod-filter-btn.active {
    background: var(--prod-primary);
    border-color: var(--prod-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(242, 107, 15, 0.3);
}

.prod-search-wrap {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--prod-surface);
    border: 1px solid var(--prod-border);
    border-radius: 100px;
    padding: 8px 18px;
}

html[dir="ltr"] .prod-search-wrap {
    margin-right: 0;
    margin-left: auto;
}

.prod-search-wrap input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    width: 200px;
}

.prod-search-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    padding-bottom: 60px;
}

/* PRODUCT CARD */
.prod-card {
    background: var(--prod-surface);
    border: 1px solid var(--prod-border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.prod-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(242, 107, 15, 0.2);
    border-color: rgba(242, 107, 15, 0.25);
}

.prod-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1030 0%, #0d1a25 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.prod-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.4s ease;
}

.prod-card:hover .prod-card-img img {
    transform: scale(1.08);
}

.prod-card-img-placeholder {
    font-size: 4rem;
    opacity: 0.5;
}

.prod-card-img-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(242, 107, 15, 0.15) 0%, transparent 70%);
}

.prod-card-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

html[dir="ltr"] .prod-card-badges {
    right: auto;
    left: 12px;
}

.prod-badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.prod-badge.feat {
    background: rgba(242, 107, 15, 0.9);
    color: #fff;
}

.prod-badge.out {
    background: rgba(220, 53, 69, 0.85);
    color: #fff;
}

.prod-badge.in {
    background: rgba(40, 167, 69, 0.85);
    color: #fff;
}

.prod-card-body {
    padding: 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
    background: var(--prod-surface);
    border-top: 2px solid var(--prod-primary);
    position: relative;
    z-index: 2;
}

.prod-card-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--prod-primary);
    opacity: .9;
}

.prod-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-card-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--prod-border);
    margin-top: auto;
    background: var(--prod-surface);
}

.prod-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--prod-primary);
}

.prod-price small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    margin-right: 4px;
}

html[dir="ltr"] .prod-price small {
    margin-right: 0;
    margin-left: 4px;
}

.prod-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--prod-primary);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 100px;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}

.prod-contact-btn:hover {
    background: #d45a00;
    transform: scale(1.04);
}

/* EMPTY STATE */
.prod-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 80px 0;
    color: rgba(255, 255, 255, 0.3);
}

.prod-empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.prod-empty p {
    font-size: 1.1rem;
}

/* PRODUCT MODAL */
.prod-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.prod-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.prod-modal {
    background: #13131f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.97);
    transition: transform .3s;
}

.prod-overlay.open .prod-modal {
    transform: none;
}

.prod-modal-img {
    width: 100%;
    min-height: 350px;
    max-height: 420px;
    object-fit: contain;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    background: linear-gradient(135deg, #1a1030, #0d1a25);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
}

.prod-modal-body {
    padding: 28px;
    background: #13131f;
    border-top: 3px solid var(--prod-primary);
    position: relative;
    z-index: 2;
}

.prod-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.prod-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s;
}

.prod-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.prod-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.prod-modal-desc {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    margin-bottom: 20px;
}

.prod-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.prod-meta-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.prod-modal-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.prod-modal-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--prod-primary);
}

.prod-modal-price small {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.prod-modal-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 15px;
    transition: all .2s;
}

.prod-modal-wa:hover {
    background: #1da851;
    transform: scale(1.04);
}

/* FOOTER LINK */
.products-footer-link {
    text-align: center;
    padding: 30px 0 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.products-footer-link a {
    color: var(--prod-primary);
    text-decoration: none;
}

/* LOADING SKELETON */
.prod-skeleton {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.prod-skeleton-card {
    background: var(--prod-surface);
    border: 1px solid var(--prod-border);
    border-radius: 20px;
    overflow: hidden;
}

.skel-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(90deg, #1a1a2e 25%, #2a2a40 50%, #1a1a2e 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skel-body {
    padding: 20px;
}

.skel-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #1a1a2e 25%, #2a2a40 50%, #1a1a2e 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 10px;
}

.skel-line.short {
    width: 60%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

@media(max-width:640px) {
    .prod-filters-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .prod-search-wrap {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    .prod-search-wrap input {
        width: 100%;
    }
}