/* ==========================================================================
   NABTAH MODERN HOME - BESPOKE DESIGN SYSTEM
   Clean, Modern, Scoped Styling (No Global Collisions)
   ========================================================================== */

:root {
    --nabtah-primary: #1B4D3E;
    --nabtah-primary-light: #2D6A4F;
    --nabtah-accent: #00A86B;
    --nabtah-amber: #D97706;
    --nabtah-bg: #F8FAFC;
    --nabtah-card: #FFFFFF;
    --nabtah-border: #E2E8F0;
    --nabtah-text-dark: #0F172A;
    --nabtah-text-body: #334155;
    --nabtah-text-muted: #64748B;
    --nabtah-radius: 16px;
    --nabtah-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    --nabtah-shadow-hover: 0 10px 30px -4px rgba(15, 23, 42, 0.12);
}

.nabtah-modern-scope {
    font-family: 'Cairo', sans-serif !important;
    background-color: var(--nabtah-bg);
}

/* --- Hero & Banner Composition --- */
.nabtah-hero-wrap {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.nabtah-hero-slider-box {
    border-radius: var(--nabtah-radius);
    overflow: hidden;
    box-shadow: var(--nabtah-shadow);
    background: #fff;
}

.nabtah-hero-slider-box .__slide-img {
    border-radius: var(--nabtah-radius);
    object-fit: cover;
    min-height: 280px;
    max-height: 420px;
}

.nabtah-hero-side-card {
    background: #fff;
    border: 1px solid var(--nabtah-border);
    border-radius: var(--nabtah-radius);
    padding: 1.25rem;
    box-shadow: var(--nabtah-shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none !important;
}

.nabtah-hero-side-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--nabtah-shadow-hover);
    border-color: var(--nabtah-accent);
}

/* --- Trust Badges Bar --- */
.nabtah-trust-bar {
    background: #ffffff;
    border: 1px solid var(--nabtah-border);
    border-radius: var(--nabtah-radius);
    padding: 1.25rem;
    box-shadow: var(--nabtah-shadow);
    margin-bottom: 2rem;
}

.nabtah-trust-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.nabtah-trust-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ECFDF5;
    color: var(--nabtah-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.nabtah-trust-text h6 {
    margin: 0;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--nabtah-text-dark);
}

.nabtah-trust-text p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--nabtah-text-muted);
}

/* --- Categories Discovery --- */
.nabtah-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--nabtah-text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.nabtah-section-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 24px;
    background: var(--nabtah-accent);
    border-radius: 4px;
}

.nabtah-cat-circle-card {
    background: #ffffff;
    border: 1px solid var(--nabtah-border);
    border-radius: var(--nabtah-radius);
    padding: 1rem 0.5rem;
    text-align: center;
    transition: all 0.25s ease;
    display: block;
    text-decoration: none !important;
}

.nabtah-cat-circle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--nabtah-shadow-hover);
    border-color: var(--nabtah-accent);
}

.nabtah-cat-img-box {
    width: 68px;
    height: 68px;
    margin: 0 auto 0.6rem;
    border-radius: 50%;
    background: #F1F5F9;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.nabtah-cat-circle-card:hover .nabtah-cat-img-box {
    background: #ECFDF5;
}

.nabtah-cat-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nabtah-cat-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--nabtah-text-dark);
    margin: 0;
    line-height: 1.2;
}

/* --- Product Cards --- */
.nabtah-product-card {
    background: #ffffff;
    border: 1px solid var(--nabtah-border);
    border-radius: var(--nabtah-radius);
    padding: 1rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    height: 100%;
}

.nabtah-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--nabtah-shadow-hover);
    border-color: var(--nabtah-accent);
}

.nabtah-prod-img-wrap {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8FAFC;
    border-radius: 12px;
    margin-bottom: 0.85rem;
    position: relative;
    overflow: hidden;
}

.nabtah-prod-img-wrap img {
    max-height: 160px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nabtah-product-card:hover .nabtah-prod-img-wrap img {
    transform: scale(1.04);
}

.nabtah-discount-pill {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #EF4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}

.nabtah-prod-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--nabtah-text-dark);
    margin-bottom: 0.35rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.5rem;
    text-decoration: none !important;
}

.nabtah-prod-title:hover {
    color: var(--nabtah-primary);
}

.nabtah-price-box {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.nabtah-current-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--nabtah-primary);
}

.nabtah-old-price {
    font-size: 0.8rem;
    color: var(--nabtah-text-muted);
    text-decoration: line-through;
}

.nabtah-btn-add {
    width: 100%;
    background: var(--nabtah-primary);
    color: #ffffff !important;
    border: none;
    border-radius: 10px;
    padding: 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background 0.2s ease;
    cursor: pointer;
    text-decoration: none !important;
}

.nabtah-btn-add:hover {
    background: var(--nabtah-primary-light);
    color: #ffffff !important;
}

/* Quick view trigger */
.nabtah-quick-view-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--nabtah-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    z-index: 3;
}

.nabtah-quick-view-btn:hover {
    background: var(--nabtah-primary);
    color: #fff;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .nabtah-hero-slider-box .__slide-img {
        min-height: 180px;
        max-height: 240px;
    }
    .nabtah-trust-bar {
        padding: 0.75rem;
    }
    .nabtah-prod-img-wrap {
        height: 140px;
    }
}

/* --- Vertical Row Spacing Improvements --- */
.nabtah-product-card {
    margin-bottom: 1.75rem !important;
}

.nabtah-cat-circle-card {
    margin-bottom: 1.25rem !important;
}

/* --- Showcase Pods (Best Sellers & Top Rated) --- */
.nabtah-showcase-card {
    background: #ffffff;
    border: 1px solid var(--nabtah-border);
    border-radius: var(--nabtah-radius);
    padding: 1.5rem;
    box-shadow: var(--nabtah-shadow);
    transition: box-shadow 0.3s ease;
}

.nabtah-showcase-card:hover {
    box-shadow: var(--nabtah-shadow-hover);
}

.nabtah-showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--nabtah-border);
}

.nabtah-showcase-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.nabtah-showcase-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--nabtah-text-dark);
}

.nabtah-showcase-sub {
    font-size: 0.78rem;
    color: var(--nabtah-text-muted);
}

.nabtah-showcase-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--nabtah-accent) !important;
    text-decoration: none !important;
    transition: color 0.2s;
    white-space: nowrap;
}

.nabtah-showcase-link:hover {
    color: var(--nabtah-primary) !important;
}

.nabtah-showcase-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.nabtah-ranked-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nabtah-ranked-item:hover {
    background: #F8FAFC;
    border-color: var(--nabtah-border);
    transform: translateX(-3px);
}

.nabtah-rank-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
    color: #fff;
    background: #94A3B8;
}

.nabtah-rank-badge.rank-1 {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.nabtah-rank-badge.rank-2 {
    background: linear-gradient(135deg, #94A3B8 0%, #64748B 100%);
}

.nabtah-rank-badge.rank-3 {
    background: linear-gradient(135deg, #B45309 0%, #78350F 100%);
}

.nabtah-ranked-thumb {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    border-radius: 10px !important;
    background: #F8FAFC !important;
    border: 1px solid var(--nabtah-border) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
}

.nabtah-ranked-thumb img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transition: transform 0.2s;
}

.nabtah-ranked-item:hover .nabtah-ranked-thumb img {
    transform: scale(1.08);
}

.nabtah-ranked-details {
    flex: 1;
    min-width: 0;
}

.nabtah-ranked-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--nabtah-text-dark);
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none !important;
}

.nabtah-ranked-title:hover {
    color: var(--nabtah-primary);
}

.nabtah-ranked-rating {
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.25rem;
}

.nabtah-ranked-price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nabtah-ranked-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--nabtah-primary);
}

.nabtah-ranked-del {
    font-size: 0.75rem;
    color: var(--nabtah-text-muted);
}

.nabtah-ranked-buy-btn {
    background: var(--nabtah-primary);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.nabtah-ranked-buy-btn:hover {
    background: var(--nabtah-primary-light);
    transform: translateY(-1px);
}

/* ==========================================================================
   DEAL OF THE DAY & LATEST PRODUCTS SYSTEM
   ========================================================================== */
.nabtah-deal-card {
    background: #FFFFFF;
    border-radius: var(--nabtah-radius);
    border: 1.5px solid #FCD34D;
    box-shadow: 0 4px 20px -2px rgba(217, 119, 6, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nabtah-deal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -4px rgba(217, 119, 6, 0.18);
}

.nabtah-deal-header {
    background: linear-gradient(135deg, #1B4D3E 0%, #12352B 100%);
    padding: 1rem 1.25rem;
    color: #FFFFFF;
}

.nabtah-deal-bolt {
    font-size: 1.5rem;
    animation: nabtah-pulse 1.5s infinite;
}

.nabtah-deal-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #FFFFFF;
}

.nabtah-deal-sub {
    font-size: 0.72rem;
    color: #A7F3D0;
}

.nabtah-deal-badge {
    background: #F59E0B;
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--nabtah-radius-pill);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

.nabtah-deal-timer-bar {
    background: #FEF9C3;
    border-bottom: 1px solid #FDE68A;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.nabtah-deal-timer-label {
    font-weight: 700;
    color: #92400E;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.nabtah-deal-countdown {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    direction: ltr !important;
}

.nabtah-deal-countdown .timer-unit {
    background: #1B4D3E;
    color: #FFFFFF;
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    min-width: 32px;
}

.nabtah-deal-countdown .timer-unit small {
    font-size: 0.55rem;
    font-weight: 600;
    color: #A7F3D0;
    margin-top: 1px;
}

.nabtah-deal-countdown .timer-sep {
    font-weight: 900;
    color: #1B4D3E;
    font-size: 1rem;
    line-height: 1;
}

.nabtah-deal-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
}

.nabtah-deal-img-box {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 12px;
    margin: 0 auto;
}

.nabtah-deal-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nabtah-deal-card:hover .nabtah-deal-img {
    transform: scale(1.05);
}

.nabtah-deal-discount-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.nabtah-deal-savings-tag {
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #BBF7D0;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.nabtah-deal-stock-bar {
    width: 100%;
    max-width: 280px;
}

.nabtah-deal-info {
    width: 100%;
    text-align: center;
}

.nabtah-deal-prod-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    min-height: 48px;
}

.nabtah-deal-prod-title a {
    color: var(--nabtah-text-dark);
    text-decoration: none !important;
    transition: color 0.2s;
}

.nabtah-deal-prod-title a:hover {
    color: var(--nabtah-primary);
}

.nabtah-deal-price-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.nabtah-deal-old-price {
    font-size: 0.9rem;
    color: #94A3B8;
    text-decoration: line-through;
}

.nabtah-deal-curr-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--nabtah-primary);
}

.nabtah-deal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: var(--nabtah-primary);
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--nabtah-radius-pill);
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(27, 77, 62, 0.25);
}

.nabtah-deal-btn:hover {
    background: var(--nabtah-accent);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 168, 107, 0.3);
}

.nabtah-latest-panel {
    background: #FFFFFF;
    border-radius: var(--nabtah-radius);
    border: 1px solid var(--nabtah-border);
    padding: 1.25rem;
    box-shadow: var(--nabtah-shadow-sm);
}

@keyframes nabtah-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}
