/* ═══ منصة نبراس — تجربة زائر/متجر فاخرة ═══ */

/* Hero — حركة خفيفة على الخلفية */
@keyframes nebrasHeroKenBurns {
    from { transform: scale(1.02); }
    to { transform: scale(1.08); }
}

.hero.hero-real .hero-bg-layer {
    animation: nebrasHeroKenBurns 22s ease-in-out infinite alternate;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .hero.hero-real .hero-bg-layer {
        animation: none;
    }
}

/* شريط الثقة — تحت الهيرو */
.nebras-trust-strip {
    position: relative;
    z-index: 4;
    margin: -28px 5% 32px;
    padding: 0;
}

.nebras-trust-strip-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(244, 248, 252, 0.98) 100%);
    border: 1px solid rgba(13, 40, 64, 0.1);
    box-shadow:
        0 24px 56px rgba(13, 40, 64, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    backdrop-filter: blur(12px);
}

.nebras-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 8px 6px;
    border-radius: 14px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.nebras-trust-item:hover {
    transform: translateY(-3px);
    background: rgba(0, 168, 255, 0.06);
}

.nebras-trust-item > i {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.22rem;
    color: #fff;
    background: linear-gradient(145deg, #0d2840, #155e94);
    border: 2px solid rgba(255, 255, 255, 0.38);
    box-shadow:
        0 10px 26px rgba(13, 40, 64, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.nebras-trust-item:nth-child(2) > i {
    background: linear-gradient(145deg, #c41e3a, #a01830);
}

.nebras-trust-item:nth-child(3) > i {
    background: linear-gradient(145deg, #059669, #047857);
}

.nebras-trust-item:nth-child(4) > i {
    background: linear-gradient(145deg, #7c3aed, #5b21b6);
}

.nebras-trust-item strong {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0d2840;
    line-height: 1.35;
}

.nebras-trust-item span {
    font-size: 0.74rem;
    color: rgba(13, 40, 64, 0.68);
    line-height: 1.4;
}

/* QR للزوار — مشاركة الموقع */
.nebras-visitor-qr-section {
    margin: 0 5% 36px;
    padding: 0;
}

.nebras-visitor-qr-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) auto;
    gap: 28px;
    align-items: center;
    padding: 28px 32px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 244, 252, 0.96));
    border: 1px solid rgba(6, 46, 68, 0.1);
    box-shadow: 0 22px 50px rgba(6, 46, 68, 0.1);
}

.nebras-visitor-qr-eyebrow {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0d7ea8;
    letter-spacing: 0.02em;
}

.nebras-visitor-qr-title {
    margin: 0 0 10px;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 800;
    color: #062e44;
    line-height: 1.35;
}

.nebras-visitor-qr-lead {
    margin: 0 0 14px;
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(6, 46, 68, 0.78);
    max-width: 52ch;
}

.nebras-visitor-qr-url {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #155e94;
    text-decoration: none;
}

.nebras-visitor-qr-url:hover {
    text-decoration: underline;
}

.nebras-visitor-qr-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    background: linear-gradient(145deg, #062e44, #0d4a6e);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(6, 46, 68, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nebras-visitor-qr-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(6, 46, 68, 0.28);
}

.nebras-visitor-qr-visual {
    display: flex;
    justify-content: center;
}

.nebras-visitor-qr-frame {
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    border: 2px solid rgba(6, 46, 68, 0.08);
    box-shadow: 0 12px 32px rgba(6, 46, 68, 0.12);
}

.nebras-visitor-qr-frame img {
    display: block;
    width: 196px;
    height: 196px;
    border-radius: 8px;
}

@media (max-width: 820px) {
    .nebras-visitor-qr-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px 20px;
    }

    .nebras-visitor-qr-lead {
        max-width: none;
        margin-inline: auto;
    }
}

/* بوابة نبراس — تأثيرات دخول */
.nebras-gateway {
    position: relative;
}

.nebras-gateway::before {
    content: '';
    position: absolute;
    inset: -40px 0 auto;
    height: 120px;
    background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(0, 168, 255, 0.08), transparent);
    pointer-events: none;
}

.visitor-lane {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.visitor-lane.reveal-visible {
    animation: nebrasLaneReveal 0.65s ease both;
}

@keyframes nebrasLaneReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visitor-lane.reveal-visible:nth-child(2) { animation-delay: 0.08s; }
.visitor-lane.reveal-visible:nth-child(3) { animation-delay: 0.16s; }

.visitor-lane:hover {
    box-shadow: 0 22px 52px rgba(13, 40, 64, 0.14);
    transform: translateY(-2px);
}

/* بطاقات الأيقونات — لمعان عند المرور */
.visitor-icon-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease;
}

.visitor-icon-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 38%,
        rgba(255, 255, 255, 0.22) 50%,
        transparent 62%
    );
    transform: translateX(-120%);
    transition: transform 0.55s ease;
    pointer-events: none;
}

.visitor-icon-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(13, 40, 64, 0.2);
}

.visitor-icon-card:hover::after {
    transform: translateX(120%);
}

.visitor-icon-card--door-designer {
    border: 2px solid rgba(196, 30, 58, 0.35);
    box-shadow: 0 12px 32px rgba(196, 30, 58, 0.15);
}

/* زر استكشاف المتجر الكامل */
.nebras-gateway-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 8px 0 24px;
}

.nebras-gateway-cta-btn {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #c41e3a 0%, #0d2840 100%);
    box-shadow: 0 12px 28px rgba(196, 30, 58, 0.35);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.nebras-gateway-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(196, 30, 58, 0.42);
}

.nebras-gateway-cta-btn--ghost {
    background: #fff;
    color: #0d2840;
    border: 2px solid rgba(13, 40, 64, 0.15);
    box-shadow: 0 8px 20px rgba(13, 40, 64, 0.08);
}

/* سلة — واجهة متجر فاخرة */
.cart-drawer {
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -16px 48px rgba(13, 40, 64, 0.22);
}

.cart-drawer-overlay.show .cart-drawer {
    animation: cartSlideUp 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cartSlideUp {
    from { transform: translateY(100%); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
}

.cart-drawer h2 {
    font-size: 1.25rem;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(196, 30, 58, 0.2);
    margin-bottom: 12px;
}

.cart-line {
    border-radius: 14px;
    transition: background 0.2s ease;
}

.cart-line:hover {
    background: rgba(0, 168, 255, 0.04);
}

.cart-drawer-actions .primary {
    background: linear-gradient(135deg, #c41e3a, #a01830);
    font-weight: 800;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.3);
}

.cart-fab {
    box-shadow: 0 10px 28px rgba(196, 30, 58, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cart-fab:hover {
    transform: scale(1.06);
}

/* شريط موبايل ثابت */
.nebras-mobile-commerce-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(13, 40, 64, 0.12);
    box-shadow: 0 -8px 32px rgba(13, 40, 64, 0.12);
    backdrop-filter: blur(14px);
    gap: 8px;
    grid-template-columns: 1fr 1fr 1.2fr;
}

body.nebras-mobile-bar-active .nebras-mobile-commerce-bar {
    display: grid;
}

body.nebras-mobile-bar-active .cart-fab {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

body.nebras-mobile-bar-active.nebras-workspace-active .nebras-mobile-commerce-bar,
body.nebras-mobile-bar-active.admin-session .nebras-mobile-commerce-bar {
    display: none;
}

.nebras-mobile-bar-btn {
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 10px 6px;
    border-radius: 12px;
    border: 1px solid rgba(13, 40, 64, 0.12);
    background: #f8fafc;
    color: #0d2840;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
}

.nebras-mobile-bar-btn i {
    font-size: 1.05rem;
}

.nebras-mobile-bar-btn--primary {
    background: linear-gradient(135deg, #c41e3a, #0d2840);
    color: #fff;
    border-color: transparent;
}

.nebras-mobile-bar-btn .mob-cart-count {
    position: absolute;
    top: 4px;
    inset-inline-end: 8px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #c41e3a;
    color: #fff;
    font-size: 0.65rem;
    display: none;
    align-items: center;
    justify-content: center;
}

.nebras-mobile-bar-btn .mob-cart-count.show {
    display: inline-flex;
}

.nebras-mobile-bar-btn--cart {
    position: relative;
}

/* تحسين الهيدر والأزرار العلوية */
.top-commerce-btn.quote-top-btn {
    background: linear-gradient(135deg, #c41e3a, #a01830);
    font-weight: 800;
    border: none;
    box-shadow: 0 4px 14px rgba(196, 30, 58, 0.35);
}

.top-commerce-btn.quote-top-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(196, 30, 58, 0.45);
}

/* مساحة العمل — بطاقات منتجات */
.workspace-product-tile {
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.workspace-product-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(13, 40, 64, 0.14);
}

@media (max-width: 900px) {
    .nebras-trust-strip-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body.nebras-mobile-bar-active:not(.nebras-workspace-active):not(.admin-session) {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }

    /* أداء — بدون حركة خلفية على الموبايل */
    .hero.hero-real .hero-bg-layer {
        animation: none !important;
    }

    .nebras-trust-strip {
        margin: -12px 4% 20px;
    }

    .nebras-trust-strip-inner {
        padding: 12px 10px;
        gap: 6px;
    }

    .nebras-trust-item > i {
        width: 34px;
        height: 34px;
        font-size: 0.88rem;
    }

    .nebras-trust-item strong {
        font-size: 0.78rem;
    }

    .nebras-trust-item span {
        font-size: 0.68rem;
    }

    .visitor-icons-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 16px;
    }

    .visitor-icon-card.spotlight-card {
        min-height: 150px;
    }

    .visitor-lane {
        padding: 14px 12px 16px;
    }

    .nebras-gateway {
        padding-top: 0;
    }

    .site-structure.nebras-gateway {
        padding-inline: 4%;
    }
}

@media (min-width: 769px) {
    .nebras-mobile-commerce-bar {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .visitor-lane.reveal-visible,
    .cart-drawer-overlay.show .cart-drawer {
        animation: none;
    }

    .visitor-icon-card::after {
        display: none;
    }
}

/* ═══ متجر نبراس — بطاقات منتجات + صفحة المنتج + خصوصية الزائر ═══ */

.nebras-visitor-privacy-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 0 0 18px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(13, 40, 64, 0.06));
    border: 1px solid rgba(5, 150, 105, 0.28);
    font-size: 0.86rem;
    line-height: 1.5;
    color: #0d2840;
}

.nebras-visitor-privacy-strip > i {
    color: #059669;
    font-size: 1.1rem;
}

.nebras-session-ref,
.cart-session-hint code {
    font-family: ui-monospace, monospace;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
    background: rgba(13, 40, 64, 0.08);
    color: #155e94;
    letter-spacing: 0.06em;
}

.nebras-store-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 22px;
    align-items: start;
}

.nebras-store-main {
    min-width: 0;
}

.nebras-store-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.nebras-store-toolbar-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
}

.nebras-store-toolbar-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0d2840;
}

.nebras-store-toolbar-count {
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 600;
}

.nebras-store-sort-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nebras-store-sort-btn {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(13, 40, 64, 0.14);
    background: #fff;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.nebras-store-sort-btn.is-active,
.nebras-store-sort-btn:hover {
    background: linear-gradient(135deg, #c41e3a, #e85d4c);
    border-color: transparent;
    color: #fff;
}

.nebras-store-sidebar {
    position: sticky;
    top: 88px;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(13, 40, 64, 0.1);
    box-shadow: 0 12px 32px rgba(13, 40, 64, 0.06);
}

.nebras-store-sidebar-title {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 800;
    color: #0d2840;
}

.nebras-store-filter-group {
    margin-bottom: 14px;
}

.nebras-store-filter-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
}

.nebras-store-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nebras-store-filter-chip {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(13, 40, 64, 0.12);
    background: #f8fafc;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    color: #334155;
}

.nebras-store-filter-chip.is-active {
    background: rgba(13, 40, 64, 0.92);
    color: #fff;
    border-color: transparent;
}

.nebras-store-filter-select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(13, 40, 64, 0.14);
    background: #fff;
    font-size: 0.84rem;
}

.nebras-store-filter-reset {
    width: 100%;
    margin-top: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px dashed rgba(13, 40, 64, 0.2);
    background: transparent;
    font-size: 0.82rem;
    font-weight: 700;
    color: #155e94;
    cursor: pointer;
}

.nebras-store-catalog-card--premium {
    position: relative;
}

.nebras-store-stock-badge {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.nebras-store-stock-badge--in {
    background: rgba(5, 150, 105, 0.92);
    color: #fff;
}

.nebras-store-stock-badge--out {
    background: rgba(100, 116, 139, 0.92);
    color: #fff;
}

.nebras-store-card-cart-btn {
    position: absolute;
    bottom: 14px;
    inset-inline-start: 14px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #c41e3a, #e85d4c);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.35);
}

.nebras-store-empty {
    grid-column: 1 / -1;
    padding: 28px;
    text-align: center;
    color: #64748b;
    font-weight: 600;
}

.nebras-store-catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 1100px) {
    .nebras-store-catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .nebras-store-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.nebras-store-catalog-card {
    display: flex;
    flex-direction: column;
    text-align: start;
    padding: 0;
    border: 1px solid rgba(13, 40, 64, 0.1);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(13, 40, 64, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.nebras-store-catalog-card:hover,
.nebras-store-catalog-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(0, 168, 255, 0.45);
    box-shadow: 0 18px 40px rgba(21, 94, 148, 0.16);
    outline: none;
}

.nebras-store-catalog-media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(145deg, #eef2f6, #f8fafc);
}

.nebras-store-catalog-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.nebras-store-catalog-card:hover .nebras-store-catalog-media img {
    transform: scale(1.04);
}

.nebras-store-catalog-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    color: #94a3b8;
}

.nebras-store-catalog-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px;
}

.nebras-store-catalog-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0d2840;
    line-height: 1.35;
}

.nebras-store-catalog-desc {
    font-size: 0.84rem;
    line-height: 1.5;
    color: #475569;
}

.nebras-store-catalog-price {
    font-size: 0.92rem;
    font-weight: 800;
    color: #c41e3a;
    margin-top: 2px;
}

.nebras-store-catalog-cta {
    margin-top: auto;
    padding-top: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #155e94;
}

/* صفحة المنتج داخل المتجر */
.nebras-store-product {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nebras-store-product-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
    box-shadow: 0 16px 40px rgba(13, 40, 64, 0.1);
}

.nebras-store-hero-img {
    width: 100%;
    max-height: min(420px, 48vh);
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    background: #f8fafc;
}

.nebras-store-zoom-hint {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(13, 40, 64, 0.72);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    pointer-events: none;
}

.nebras-store-product-info {
    padding: 4px 2px 0;
}

.nebras-store-product-title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0d2840;
    line-height: 1.35;
}

.nebras-store-product-desc {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #475569;
    white-space: pre-wrap;
}

.nebras-store-product-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nebras-store-gallery-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    width: 72px;
    height: 72px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s, transform 0.2s;
}

.nebras-store-gallery-thumb.is-active {
    border-color: #00a8ff;
    transform: scale(1.04);
}

.nebras-store-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nebras-store-vat-note {
    margin: 8px 0 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(0, 168, 255, 0.08);
    border: 1px solid rgba(21, 94, 148, 0.15);
    font-size: 0.84rem;
    line-height: 1.55;
    color: #31465b;
}

.nebras-store-skus-title {
    margin: 12px 0 14px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0d2840;
}

.nebras-store-sku-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1100px) {
    .nebras-store-sku-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .nebras-store-sku-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.nebras-store-sku-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(13, 40, 64, 0.1);
    box-shadow: 0 10px 28px rgba(13, 40, 64, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nebras-store-sku-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(21, 94, 148, 0.12);
}

.nebras-store-sku-media {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f1f5f9;
    cursor: zoom-in;
}

.nebras-store-sku-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nebras-store-sku-card:hover .nebras-store-sku-media img {
    transform: scale(1.05);
}

.nebras-store-sku-media--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #94a3b8;
    cursor: default;
}

.nebras-store-sku-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    flex: 1;
}

.nebras-store-sku-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0d2840;
    line-height: 1.4;
}

.nebras-store-sku-specs {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
}

.nebras-store-sku-specs li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(13, 40, 64, 0.08);
}

.nebras-store-sku-specs li span {
    opacity: 0.75;
}

.nebras-store-sku-price {
    margin-top: 4px;
}

.nebras-store-sku-add-btn {
    margin-top: auto;
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(145deg, #059669, #047857);
    color: #fff;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    transition: filter 0.2s, transform 0.15s;
}

.nebras-store-sku-add-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.nebras-store-sku-preview-only {
    display: block;
    text-align: center;
    font-size: 0.82rem;
    opacity: 0.7;
    padding: 8px;
}

.nebras-store-subcategory {
    margin: 1.25rem 0 1.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nebras-store-subcategory:first-of-type {
    border-top: none;
    padding-top: 0;
}

.nebras-store-subcategory-title {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #e8edf2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nebras-store-subcategory-desc {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    opacity: 0.82;
    line-height: 1.5;
}

.nebras-store-subsections-intro {
    margin: 0 0 1rem;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(13, 74, 110, 0.12);
    border: 1px solid rgba(13, 74, 110, 0.22);
    font-size: 0.92rem;
    line-height: 1.55;
    color: #1a3a4a;
}

.nebras-store-subsections-intro--product {
    margin-top: 12px;
}

.nebras-store-subnav {
    margin: 0 0 1.25rem;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(6, 46, 68, 0.92), rgba(13, 74, 110, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.nebras-store-subnav-kicker {
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
}

.nebras-store-subnav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nebras-store-subnav-pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.nebras-store-subnav-pill:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.nebras-store-subcategory--hub {
    scroll-margin-top: 88px;
    margin: 0 0 2rem;
    padding: 1.25rem 1rem 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nebras-store-subcategory-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.nebras-store-subcategory--hub .nebras-store-subcategory-title {
    margin: 0;
    font-size: 1.15rem;
    color: #fff;
}

.nebras-store-subcategory-count {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(5, 150, 105, 0.35);
}

.nebras-store-layout--subsections .nebras-store-main--full {
    grid-column: 1 / -1;
}

.nebras-store-subsections-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nebras-store-subhub {
    margin: 0.5rem 0 1.75rem;
}

.nebras-store-subhub--premium {
    margin: 0 0 1.5rem;
}

.nebras-store-subhub-head {
    margin-bottom: 1rem;
}

.nebras-store-subhub-main-title {
    margin: 0 0 0.4rem;
    font-size: 1.45rem;
    font-weight: 800;
    color: #0d2840;
    line-height: 1.35;
}

.nebras-store-subhub-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.55;
}

.nebras-store-subsections-intro--hub {
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(21, 94, 148, 0.06));
    border-color: rgba(5, 150, 105, 0.22);
}

.nebras-store-subhub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
    margin-top: 0.5rem;
}

.nebras-store-subhub-card {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    text-align: right;
}

.nebras-store-subhub-card--premium {
    background: #fff;
    border: 1px solid rgba(13, 40, 64, 0.12);
    box-shadow: 0 12px 32px rgba(13, 40, 64, 0.08);
}

.nebras-store-subhub-card--premium[data-sub-id="wpc-ready-install"] {
    border-top: 4px solid #059669;
}

.nebras-store-subhub-card--premium[data-sub-id="wpc-ready-supply"] {
    border-top: 4px solid #0284c7;
}

.nebras-store-subhub-card--premium[data-sub-id="wpc-raw-bare"] {
    border-top: 4px solid #b45309;
}

.nebras-store-subhub-card--premium[data-sub-id="wpc-raw-clad"] {
    border-top: 4px solid #7c3aed;
}

.nebras-store-subhub-card--premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(21, 94, 148, 0.14);
    border-color: rgba(5, 150, 105, 0.35);
}

.nebras-store-subhub-card-media {
    aspect-ratio: 16/11;
    min-height: 200px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nebras-store-subhub-card--premium .nebras-store-subhub-card-media {
    aspect-ratio: 16/10;
    min-height: 220px;
}

.nebras-store-subhub-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px 24px;
}

.nebras-store-subhub-card-placeholder {
    font-size: 3rem;
    opacity: 0.35;
    color: #0d4a6e;
}

.nebras-store-subhub-card-body {
    padding: 1.15rem 1.25rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.nebras-store-subhub-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.1);
    color: #047857;
    border: 1px solid rgba(5, 150, 105, 0.22);
}

.nebras-store-subhub-card-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: #0d2840;
    line-height: 1.45;
}

.nebras-store-subhub-card-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}

.nebras-store-subhub-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.15rem;
}

.nebras-store-subhub-card-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: #047857;
}

.nebras-store-subhub-card-cta {
    margin-top: 0.45rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(13, 40, 64, 0.12);
    font-size: 0.9rem;
    font-weight: 800;
    color: #155e94;
}

.nebras-store-sub-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 1rem;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(13, 40, 64, 0.14);
    background: #fff;
    color: #0d2840;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(13, 40, 64, 0.06);
}

.nebras-store-sub-back-btn:hover {
    background: #f8fafc;
    border-color: rgba(5, 150, 105, 0.35);
}

.nebras-store-subcategory-page--premium {
    margin-top: 0;
}

.nebras-store-subsection-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 1rem;
    padding: 1.15rem 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
    border: 1px solid rgba(5, 150, 105, 0.18);
}

.nebras-store-subsection-banner .nebras-store-subcategory-title {
    margin: 0 0 0.45rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0d2840;
}

.nebras-store-subsection-banner .nebras-store-subcategory-desc {
    margin: 0;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    opacity: 1;
}

.nebras-store-subsection-banner .nebras-store-subcategory-count {
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 6px 12px;
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
    border-color: rgba(5, 150, 105, 0.28);
}

.nebras-store-sku-grid--section {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 1rem;
}

.nebras-store-sku-grid--section .nebras-store-sku-media {
    aspect-ratio: 4/5;
}

.nebras-store-sku-grid--section .nebras-store-sku-media img {
    object-fit: cover;
    padding: 0;
    background: #f1f5f9;
}

.nebras-store-sku-grid--section .nebras-store-sku-media--vector img,
.nebras-store-sku-grid--section .nebras-store-sku-media--wpc-door img {
    object-fit: contain !important;
    padding: 10px !important;
    background: linear-gradient(180deg, #eef2f7 0%, #e2e8f0 100%);
}

.nebras-store-subhub-card--premium .nebras-store-subhub-card-media img {
    object-fit: cover;
    padding: 0;
}

.nebras-store-sku-grid--section .nebras-store-sku-body {
    padding: 16px;
    gap: 10px;
}

.nebras-store-sku-grid--section .nebras-store-sku-name {
    font-size: 0.98rem;
    line-height: 1.45;
}

.nebras-store-sku-grid--section .nebras-store-sku-specs {
    font-size: 0.84rem;
}

@media (max-width: 1100px) {
    .nebras-store-sku-grid--section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .nebras-store-subhub-grid {
        grid-template-columns: 1fr;
    }

    .nebras-store-subhub-card--premium .nebras-store-subhub-card-media {
        min-height: 180px;
    }
}

@media (max-width: 640px) {
    .nebras-store-sku-grid--section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .nebras-store-layout {
        grid-template-columns: 1fr 220px;
    }
}

@media (max-width: 900px) {
    .nebras-store-layout {
        grid-template-columns: 1fr;
    }

    .nebras-store-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 640px) {
    .nebras-store-catalog-grid,
    .nebras-store-sku-grid {
        grid-template-columns: 1fr;
    }

    .nebras-store-hero-img {
        max-height: 280px;
    }

    .nebras-store-sort-row {
        flex-direction: column;
    }

    .nebras-store-sort-btn {
        width: 100%;
        text-align: center;
    }
}

/* WPC جاهز — معاينة الباب + اختيار لون الرولّة (بدون raster — حادّة) */
.nebras-store-sku-media--wpc-door,
.nebras-store-sku-media--vector {
    aspect-ratio: 3 / 4;
    background: linear-gradient(180deg, #eef2f7 0%, #e2e8f0 100%);
}

.nebras-store-sku-media--vector:not(.nebras-store-sku-media--wpc-door) {
    cursor: zoom-in;
}

.nebras-store-sku-media--wpc-door {
    cursor: default;
}

.nebras-store-sku-door-stack {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.nebras-store-sku-door-stack.has-door-roll-tint::after {
    content: '';
    position: absolute;
    left: 17%;
    top: 6%;
    width: 66%;
    height: 86%;
    z-index: 2;
    border-radius: 3px;
    background-color: var(--door-roll-tint, #b8bcc4);
    mix-blend-mode: color;
    opacity: var(--door-roll-tint-opacity, 0.72);
    pointer-events: none;
}

.nebras-store-sku-media--wpc-door img.nebras-store-sku-img--wpc,
.nebras-store-sku-media--vector img {
    object-fit: contain;
    padding: 10px;
    transform: none !important;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.nebras-store-sku-media--has-image img.nebras-clickable-media,
.nebras-store-sku-media:not(.nebras-store-sku-media--empty):not(.nebras-store-sku-media--awaiting-image) img.nebras-clickable-media {
    cursor: zoom-in;
}

.nebras-store-sku-media--has-image {
    position: relative;
}

.nebras-store-sku-media--has-image::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(13, 40, 64, 0.72);
    color: #fff;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nebras-store-sku-card:hover .nebras-store-sku-media--has-image::after,
.nebras-store-sku-media--has-image:focus-within::after {
    opacity: 1;
}

.nebras-store-sku-card--wpc-ready:hover .nebras-store-sku-media--wpc-door img {
    transform: none;
}

.nebras-store-roll-picker {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed rgba(13, 40, 64, 0.1);
}

.nebras-store-roll-picker-label {
    margin: 0 0 8px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #155e94;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nebras-store-roll-swatches {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    max-height: 148px;
    overflow-y: auto;
    padding: 2px;
}

.nebras-store-roll-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nebras-store-roll-swatch img,
.nebras-store-roll-swatch-fallback,
.nebras-store-roll-swatch-chip {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 5px;
    display: block;
}

.nebras-store-roll-swatch-chip {
    position: relative;
    overflow: hidden;
    background-color: var(--swatch-hex, #ccc);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.nebras-store-roll-swatch-chip img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    mix-blend-mode: multiply;
    image-rendering: auto;
}

.nebras-store-roll-swatch-code {
    font-size: 0.58rem;
    font-weight: 800;
    color: #334155;
    line-height: 1.1;
}

.nebras-store-roll-swatch.is-active {
    border-color: #059669;
    box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.25);
}

.nebras-store-roll-picker-active {
    margin: 8px 0 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #0d2840;
    min-height: 1.2em;
}

@media (min-width: 900px) {
    .nebras-store-roll-swatches {
        grid-template-columns: repeat(10, minmax(0, 1fr));
        max-height: 92px;
    }
}

.nebras-store-sku-media--awaiting-image,
.nebras-store-sku-media--empty .nebras-store-sku-awaiting-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    text-align: center;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.45;
}

.nebras-store-sku-media--awaiting-image i,
.nebras-store-sku-media--empty > i {
    font-size: 1.8rem;
    color: #94a3b8;
}
