/* ============================================
   u4ur.sa DESIGN MAKEOVER — Custom CSS
   Paste this in: Zid Dashboard > Appearance > Edit Theme > Custom CSS
   Or: Theme Settings > Custom Code > CSS
   ============================================ */

/* ========== GOOGLE FONT ========== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
    --u4ur-primary: #e02040;
    --u4ur-primary-dark: #b81830;
    --u4ur-primary-light: #ff4060;
    --u4ur-navy: #1a1a2e;
    --u4ur-dark: #0f0f1a;
    --u4ur-gold: #d4a843;
    --u4ur-light: #f8f9fa;
    --u4ur-gray: #6c757d;
    --u4ur-success: #28a745;
    --u4ur-radius: 12px;
}

/* ========== GLOBAL OVERRIDES ========== */
body {
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', sans-serif !important;
}

/* Smoother buttons everywhere */
.btn-primary {
    background: var(--u4ur-primary) !important;
    border-color: var(--u4ur-primary) !important;
    border-radius: var(--u4ur-radius) !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}
.btn-primary:hover {
    background: var(--u4ur-primary-dark) !important;
    border-color: var(--u4ur-primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(224, 32, 64, 0.4) !important;
}

/* ========== ANNOUNCEMENT BAR (injected by JS) ========== */
#u4ur-announcement {
    background: var(--u4ur-navy);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    font-family: 'Tajawal', sans-serif;
    position: relative;
    z-index: 1031;
}
#u4ur-announcement .u4ur-gold {
    color: var(--u4ur-gold);
    font-weight: 700;
}

/* ========== NAVBAR IMPROVEMENTS ========== */
#fixed-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky !important;
    top: 0 !important;
}
/* Push page content below fixed header */
body {
    padding-top: 0 !important;
}
.css-navbar-brand span {
    font-weight: 900 !important;
    font-size: 1.5rem !important;
    color: var(--u4ur-primary) !important;
}

/* ========== HERO SECTION (injected by JS) ========== */
#u4ur-hero {
    background: linear-gradient(135deg, var(--u4ur-navy) 0%, #16213e 50%, var(--u4ur-primary-dark) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}
#u4ur-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(224,32,64,0.15) 0%, transparent 60%);
    pointer-events: none;
}
#u4ur-hero .hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}
#u4ur-hero .hero-text {
    flex: 1;
    max-width: 550px;
}
#u4ur-hero .hero-badge {
    display: inline-block;
    background: rgba(212,168,67,0.2);
    color: var(--u4ur-gold);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(212,168,67,0.3);
}
#u4ur-hero h1 {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 20px;
}
#u4ur-hero h1 span {
    color: var(--u4ur-primary-light);
}
#u4ur-hero .hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 32px;
}
#u4ur-hero .hero-btns {
    display: flex;
    gap: 16px;
}
#u4ur-hero .btn-hero-primary {
    background: var(--u4ur-primary);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: var(--u4ur-radius);
    font-family: 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(224,32,64,0.4);
    transition: all 0.3s;
    display: inline-block;
}
#u4ur-hero .btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(224,32,64,0.5);
    color: #fff;
}
#u4ur-hero .btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 14px 36px;
    border-radius: var(--u4ur-radius);
    font-family: 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}
#u4ur-hero .btn-hero-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff;
}
#u4ur-hero .hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
#u4ur-hero .hero-product-circle {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
#u4ur-hero .hero-product-circle::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(224,32,64,0.2);
}
#u4ur-hero .hero-product-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: opacity 0.4s ease;
}

#u4ur-hero .hero-price-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--u4ur-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--u4ur-radius);
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(224,32,64,0.5);
}
#u4ur-hero .hero-price-tag small {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.85;
    display: block;
}

/* ========== TRUST BAR (injected by JS) ========== */
#u4ur-trust-bar {
    background: var(--u4ur-light);
    padding: 28px 0;
    border-bottom: 1px solid #e9ecef;
}
#u4ur-trust-bar .trust-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
#u4ur-trust-bar .trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
#u4ur-trust-bar .trust-icon {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    color: var(--u4ur-primary);
}
#u4ur-trust-bar .trust-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--u4ur-dark);
    margin: 0;
}
#u4ur-trust-bar .trust-sub {
    font-size: 13px;
    color: var(--u4ur-gray);
    margin: 0;
}

/* ========== FEATURES SECTION (injected by JS) ========== */
#u4ur-features {
    padding: 70px 0;
    background: #fff;
}
#u4ur-features .features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
#u4ur-features .section-title {
    text-align: center;
    margin-bottom: 50px;
}
#u4ur-features .section-title h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--u4ur-dark);
    margin-bottom: 10px;
}
#u4ur-features .section-title p {
    font-size: 17px;
    color: var(--u4ur-gray);
}
#u4ur-features .section-title .title-line {
    width: 50px;
    height: 4px;
    background: var(--u4ur-primary);
    margin: 14px auto 0;
    border-radius: 2px;
}
#u4ur-features .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
#u4ur-features .feature-card {
    background: var(--u4ur-light);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s;
}
#u4ur-features .feature-card:hover {
    border-color: var(--u4ur-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
#u4ur-features .feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--u4ur-primary), var(--u4ur-primary-dark));
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin: 0 auto 18px;
    color: #fff;
}
#u4ur-features .feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--u4ur-dark);
}
#u4ur-features .feature-card p {
    font-size: 14px;
    color: var(--u4ur-gray);
    line-height: 1.6;
    margin: 0;
}

/* ========== CTA SECTION (injected by JS) ========== */
#u4ur-cta {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--u4ur-primary) 0%, var(--u4ur-primary-dark) 100%);
    text-align: center;
    color: #fff;
}
#u4ur-cta h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 14px;
}
#u4ur-cta p {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 32px;
}
#u4ur-cta .btn-cta {
    background: #fff;
    color: var(--u4ur-primary);
    border: none;
    padding: 16px 44px;
    border-radius: var(--u4ur-radius);
    font-family: 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.3s;
    display: inline-block;
}
#u4ur-cta .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0,0,0,0.3);
}

/* ========== PRODUCT SECTION IMPROVEMENTS ========== */
.css-products {
    background: var(--u4ur-light) !important;
}
.css-products h5,
.css-products .fw-bold {
    font-weight: 800 !important;
}

/* ========== HIDE GHOST PRODUCT (0 SAR) ========== */
.css-products .product-card-body:has(.price-value:empty),
.css-products .col:has([data-price="0"]),
.css-products .col:has(.notify-me) {
    display: none !important;
}

/* ========== PRODUCT PAGE MAKEOVER ========== */

/* Product gallery — light bg, cover to fill space */
.product-gallery img,
.product-gallery-slider img,
.product-image img,
.swiper-slide img,
[class*="product"] .swiper-slide img,
[class*="gallery"] img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    background: var(--u4ur-light) !important;
}

/* Swiper slides — light background instead of black */
.swiper-slide,
[class*="product"] .swiper-slide,
[class*="gallery"] .swiper-slide,
.swiper,
.swiper-wrapper,
[class*="product"] .swiper,
[class*="product"] .swiper-wrapper,
[class*="gallery"] .swiper,
[class*="gallery"] .swiper-wrapper {
    background: var(--u4ur-light) !important;
}

/* Main product image container */
.product-gallery,
.product-gallery-slider,
[class*="product-image"],
[class*="product-gallery"] {
    border-radius: 12px !important;
    overflow: hidden !important;
    background: var(--u4ur-light) !important;
}

/* Mobile gallery — limit height so images fill properly */
@media (max-width: 768px) {
    .swiper,
    [class*="product"] .swiper,
    .product-gallery,
    .product-gallery-slider,
    [class*="product-gallery"] {
        max-height: 400px !important;
    }
    .swiper-slide,
    [class*="product"] .swiper-slide {
        max-height: 400px !important;
    }
    .swiper-slide img,
    [class*="product"] .swiper-slide img,
    [class*="gallery"] img {
        max-height: 400px !important;
        object-fit: cover !important;
    }
}

/* Hide swiper pagination red bar */
.swiper-pagination,
.swiper-pagination-progressbar,
.swiper-pagination-progressbar-fill {
    display: none !important;
}

/* Thumbnail strip — clean look */
.product-gallery-thumbs img,
[class*="thumb"] img,
.swiper-thumbs img {
    object-fit: contain !important;
    border-radius: 8px !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
}
.product-gallery-thumbs .swiper-slide-thumb-active img,
.swiper-thumbs .swiper-slide-thumb-active img {
    border-color: var(--u4ur-primary) !important;
}

/* Product title */
.product-title,
.product-details h1,
[class*="product-name"],
[class*="product-title"] {
    font-family: 'Tajawal', sans-serif !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--u4ur-dark) !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
}

/* Product price */
.product-price,
[class*="product-price"],
.product-details .price {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: var(--u4ur-primary) !important;
    font-family: 'Tajawal', sans-serif !important;
}

/* Add to cart & buy now buttons */
.product-details .btn-primary,
.product-details [class*="add-to-cart"],
.product-details [class*="buy-now"],
[class*="product"] .btn-primary {
    background: var(--u4ur-primary) !important;
    border-color: var(--u4ur-primary) !important;
    border-radius: var(--u4ur-radius) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 8px 18px !important;
    transition: all 0.3s ease !important;
}
.product-details .btn-primary:hover,
.product-details [class*="add-to-cart"]:hover,
[class*="product"] .btn-primary:hover {
    background: var(--u4ur-primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(224, 32, 64, 0.4) !important;
}

/* Product description area */
.product-description,
[class*="product-desc"],
.product-details [class*="description"] {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #444 !important;
}

/* Product info badges (weight, SKU, category) */
.product-meta,
.product-details table,
.product-details [class*="meta"],
.product-details [class*="info"] {
    font-size: 14px !important;
    color: var(--u4ur-gray) !important;
}

/* Free shipping badge on product page */
.product-details [class*="shipping"],
.product-details [class*="badge"] {
    background: rgba(40, 167, 69, 0.1) !important;
    color: var(--u4ur-success) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

/* ========== PRODUCT PAGE TRUST BADGES (injected by JS) ========== */
#u4ur-product-trust {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}
#u4ur-product-trust .product-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
#u4ur-product-trust .product-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--u4ur-dark);
}
#u4ur-product-trust .product-trust-item i {
    color: var(--u4ur-success);
    font-size: 18px;
}

/* ========== PRODUCT HIGHLIGHTS (injected by JS) ========== */
#u4ur-product-highlights {
    margin-top: 28px;
    padding: 24px;
    background: var(--u4ur-light);
    border-radius: 16px;
    border: 1px solid #e9ecef;
}
#u4ur-product-highlights h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--u4ur-dark);
    margin-bottom: 14px;
}
#u4ur-product-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#u4ur-product-highlights li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 15px;
    color: #444;
    border-bottom: 1px solid #eee;
}
#u4ur-product-highlights li:last-child {
    border-bottom: none;
}
#u4ur-product-highlights li i {
    color: var(--u4ur-primary);
    font-size: 18px;
    flex-shrink: 0;
}

/* ========== ACCOUNT PAGE MAKEOVER ========== */
/* Uses body.u4ur-account (added by JS) + broad structural selectors */

/* Page background */
body.u4ur-account {
    background: #f4f5f7 !important;
}

/* Global font on account page */
body.u4ur-account * {
    font-family: 'Tajawal', sans-serif !important;
}

/* Main container */
body.u4ur-account main,
body.u4ur-account main[role="main"],
body.u4ur-account .container,
body.u4ur-account .container-fluid {
    max-width: 1140px !important;
    margin: 0 auto !important;
    padding: 32px 20px !important;
}

/* ---- ALL row/grid containers on account page ---- */
body.u4ur-account .row {
    gap: 24px !important;
}

/* ---- RIGHT COLUMN: Sidebar nav cards ---- */
/* Target the smaller column (col-lg-4, col-lg-3, col-md-4) */
body.u4ur-account .col-lg-4,
body.u4ur-account .col-lg-3,
body.u4ur-account .col-md-4,
body.u4ur-account .col-md-3 {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

/* Each sidebar card */
body.u4ur-account .col-lg-4 > div,
body.u4ur-account .col-lg-4 > a,
body.u4ur-account .col-lg-3 > div,
body.u4ur-account .col-lg-3 > a,
body.u4ur-account .col-md-4 > div,
body.u4ur-account .col-md-4 > a,
body.u4ur-account .col-md-3 > div,
body.u4ur-account .col-md-3 > a {
    background: #fff !important;
    border-radius: 14px !important;
    padding: 18px 20px !important;
    border: 2px solid #ebebeb !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
    text-decoration: none !important;
}
body.u4ur-account .col-lg-4 > div:hover,
body.u4ur-account .col-lg-4 > a:hover,
body.u4ur-account .col-lg-3 > div:hover,
body.u4ur-account .col-lg-3 > a:hover,
body.u4ur-account .col-md-4 > div:hover,
body.u4ur-account .col-md-4 > a:hover,
body.u4ur-account .col-md-3 > div:hover,
body.u4ur-account .col-md-3 > a:hover {
    border-color: rgba(224, 32, 64, 0.35) !important;
    box-shadow: 0 4px 18px rgba(224, 32, 64, 0.1) !important;
    transform: translateX(-3px) !important;
}

/* Active sidebar card (Zid uses border-color for active state) */
body.u4ur-account .col-lg-4 > div.active,
body.u4ur-account .col-lg-4 > a.active,
body.u4ur-account .col-lg-4 > div[style*="border"],
body.u4ur-account .col-lg-4 > .border-primary,
body.u4ur-account .col-lg-3 > div.active,
body.u4ur-account .col-md-4 > div.active {
    border-color: var(--u4ur-primary) !important;
    background: linear-gradient(135deg, rgba(224,32,64,0.03), rgba(224,32,64,0.07)) !important;
    box-shadow: 0 4px 16px rgba(224, 32, 64, 0.12) !important;
}

/* Sidebar card icons */
body.u4ur-account .col-lg-4 svg,
body.u4ur-account .col-lg-3 svg,
body.u4ur-account .col-md-4 svg,
body.u4ur-account .col-md-3 svg {
    color: var(--u4ur-primary) !important;
    fill: var(--u4ur-primary) !important;
    opacity: 0.85;
}

/* Sidebar card title text */
body.u4ur-account .col-lg-4 h5,
body.u4ur-account .col-lg-4 h6,
body.u4ur-account .col-lg-4 .fw-bold,
body.u4ur-account .col-lg-4 strong,
body.u4ur-account .col-lg-3 .fw-bold,
body.u4ur-account .col-md-4 .fw-bold {
    font-weight: 800 !important;
    color: var(--u4ur-dark) !important;
    font-size: 15px !important;
}

/* Sidebar card subtitle */
body.u4ur-account .col-lg-4 p,
body.u4ur-account .col-lg-4 small,
body.u4ur-account .col-lg-4 span:not(.fw-bold),
body.u4ur-account .col-lg-3 p,
body.u4ur-account .col-md-4 p {
    color: var(--u4ur-gray) !important;
    font-size: 13px !important;
}

/* ---- LEFT COLUMN: Content area ---- */
body.u4ur-account .col-lg-8,
body.u4ur-account .col-lg-9,
body.u4ur-account .col-md-8,
body.u4ur-account .col-md-9 {
    background: #fff !important;
    border-radius: 20px !important;
    padding: 36px 32px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06) !important;
    border: 1px solid #f0f0f0 !important;
}

/* Content section headings */
body.u4ur-account .col-lg-8 h2,
body.u4ur-account .col-lg-8 h3,
body.u4ur-account .col-lg-8 h4,
body.u4ur-account .col-lg-8 h5.fw-bold,
body.u4ur-account .col-lg-9 h2,
body.u4ur-account .col-lg-9 h3,
body.u4ur-account .col-md-8 h2,
body.u4ur-account .col-md-8 h3 {
    font-weight: 800 !important;
    color: var(--u4ur-dark) !important;
    font-size: 22px !important;
    margin-bottom: 24px !important;
    padding-bottom: 14px !important;
    border-bottom: 2px solid #f4f5f7 !important;
}

/* Info table / detail rows on content side */
body.u4ur-account .col-lg-8 table,
body.u4ur-account .col-lg-9 table,
body.u4ur-account .col-md-8 table {
    width: 100% !important;
}
body.u4ur-account .col-lg-8 table td,
body.u4ur-account .col-lg-8 table th,
body.u4ur-account .col-lg-9 table td,
body.u4ur-account .col-md-8 table td {
    padding: 14px 8px !important;
    border-bottom: 1px solid #f5f5f5 !important;
    vertical-align: middle !important;
}
body.u4ur-account .col-lg-8 table tr:last-child td,
body.u4ur-account .col-lg-9 table tr:last-child td {
    border-bottom: none !important;
}

/* Row-based info layout (label : value) */
body.u4ur-account .col-lg-8 .row > div:first-child,
body.u4ur-account .col-lg-9 .row > div:first-child {
    font-weight: 600 !important;
    color: var(--u4ur-gray) !important;
    font-size: 14px !important;
}
body.u4ur-account .col-lg-8 .row > div:last-child,
body.u4ur-account .col-lg-9 .row > div:last-child {
    font-weight: 700 !important;
    color: var(--u4ur-dark) !important;
    font-size: 15px !important;
}

/* Edit / action links */
body.u4ur-account a[class*="edit"],
body.u4ur-account a[class*="btn"],
body.u4ur-account .col-lg-8 > a,
body.u4ur-account .col-lg-8 a[href*="edit"] {
    color: var(--u4ur-primary) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    font-size: 14px !important;
}
body.u4ur-account a[class*="edit"]:hover,
body.u4ur-account .col-lg-8 a:hover {
    color: var(--u4ur-primary-dark) !important;
}

/* Address section cards */
body.u4ur-account .col-lg-8 .col-lg-4,
body.u4ur-account .col-lg-8 .col-md-4,
body.u4ur-account .col-lg-8 .col-sm-6,
body.u4ur-account .col-lg-8 .col-6,
body.u4ur-account .col-lg-9 .col-lg-4,
body.u4ur-account .col-lg-9 .col-md-4 {
    background: #f9f9fb !important;
    border-radius: 14px !important;
    padding: 20px !important;
    border: 2px solid #e9ecef !important;
    transition: all 0.25s ease !important;
    box-shadow: none !important;
    flex-direction: column !important;
}
body.u4ur-account .col-lg-8 .col-lg-4:hover,
body.u4ur-account .col-lg-8 .col-md-4:hover,
body.u4ur-account .col-lg-8 .col-sm-6:hover,
body.u4ur-account .col-lg-8 .col-6:hover,
body.u4ur-account .col-lg-9 .col-lg-4:hover,
body.u4ur-account .col-lg-9 .col-md-4:hover {
    border-color: var(--u4ur-primary) !important;
    box-shadow: 0 4px 16px rgba(224, 32, 64, 0.08) !important;
    transform: translateY(-2px) !important;
}

/* Address card name/title */
body.u4ur-account .col-lg-8 .col-lg-4 .fw-bold,
body.u4ur-account .col-lg-8 .col-lg-4 strong,
body.u4ur-account .col-lg-8 .col-md-4 .fw-bold,
body.u4ur-account .col-lg-8 .col-md-4 strong {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--u4ur-dark) !important;
}

/* Address card edit/delete buttons */
body.u4ur-account .col-lg-8 .col-lg-4 button,
body.u4ur-account .col-lg-8 .col-lg-4 a[class*="btn"],
body.u4ur-account .col-lg-8 .col-md-4 button,
body.u4ur-account .col-lg-8 .col-sm-6 button {
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
    background: #fff !important;
    transition: all 0.2s !important;
    padding: 6px 10px !important;
}
body.u4ur-account .col-lg-8 .col-lg-4 button:hover,
body.u4ur-account .col-lg-8 .col-md-4 button:hover,
body.u4ur-account .col-lg-8 .col-sm-6 button:hover {
    border-color: var(--u4ur-primary) !important;
    color: var(--u4ur-primary) !important;
}

/* Add new address link */
body.u4ur-account a[href*="address"],
body.u4ur-account a[href*="عنوان"] {
    color: var(--u4ur-primary) !important;
    font-weight: 700 !important;
}

/* Submit / primary buttons */
body.u4ur-account .btn-primary,
body.u4ur-account button[type="submit"] {
    background: var(--u4ur-primary) !important;
    border: none !important;
    border-radius: var(--u4ur-radius) !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    box-shadow: 0 4px 15px rgba(224, 32, 64, 0.3) !important;
}
body.u4ur-account .btn-primary:hover,
body.u4ur-account button[type="submit"]:hover {
    background: var(--u4ur-primary-dark) !important;
    transform: translateY(-2px) !important;
}

/* Input fields */
body.u4ur-account input:not([type="checkbox"]):not([type="radio"]),
body.u4ur-account select,
body.u4ur-account textarea {
    border: 2px solid #e9ecef !important;
    border-radius: var(--u4ur-radius) !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    background: #fafafa !important;
}
body.u4ur-account input:focus,
body.u4ur-account select:focus,
body.u4ur-account textarea:focus {
    border-color: var(--u4ur-primary) !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(224, 32, 64, 0.1) !important;
}

/* Back to store link */
body.u4ur-account a[href="/"] {
    color: var(--u4ur-primary) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Logo on account header */
body.u4ur-account header a {
    color: var(--u4ur-primary) !important;
}

/* Responsive */
@media (max-width: 768px) {
    body.u4ur-account .col-lg-8,
    body.u4ur-account .col-lg-9,
    body.u4ur-account .col-md-8 {
        padding: 24px 16px !important;
        border-radius: 14px !important;
    }
}

/* ========== AUTH / LOGIN PAGE MAKEOVER ========== */
body.u4ur-auth {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef0f4 100%) !important;
}
body.u4ur-auth * {
    font-family: 'Tajawal', sans-serif !important;
}
body.u4ur-auth main,
body.u4ur-auth main[role="main"],
body.u4ur-auth .container,
body.u4ur-auth .container-fluid {
    max-width: 480px !important;
    margin: 40px auto !important;
    background: #fff !important;
    border-radius: 20px !important;
    padding: 40px 32px !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08) !important;
    border: 1px solid #f0f0f0 !important;
}
body.u4ur-auth h1,
body.u4ur-auth h2,
body.u4ur-auth h3,
body.u4ur-auth h4,
body.u4ur-auth h5 {
    font-weight: 800 !important;
    color: var(--u4ur-dark) !important;
}
body.u4ur-auth p {
    color: var(--u4ur-gray) !important;
}
body.u4ur-auth input:not([type="checkbox"]):not([type="radio"]),
body.u4ur-auth select {
    border: 2px solid #e9ecef !important;
    border-radius: var(--u4ur-radius) !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    background: #fafafa !important;
    transition: all 0.3s ease !important;
}
body.u4ur-auth input:focus,
body.u4ur-auth select:focus {
    border-color: var(--u4ur-primary) !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(224, 32, 64, 0.1) !important;
}
body.u4ur-auth .btn-primary,
body.u4ur-auth button[type="submit"] {
    background: var(--u4ur-primary) !important;
    border: none !important;
    border-radius: var(--u4ur-radius) !important;
    padding: 14px 28px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #fff !important;
    transition: all 0.3s !important;
    box-shadow: 0 4px 15px rgba(224, 32, 64, 0.3) !important;
}
body.u4ur-auth .btn-primary:hover,
body.u4ur-auth button[type="submit"]:hover {
    background: var(--u4ur-primary-dark) !important;
    transform: translateY(-2px) !important;
}
body.u4ur-auth .btn-outline-primary,
body.u4ur-auth button:not([type="submit"]) {
    border: 2px solid #e9ecef !important;
    border-radius: var(--u4ur-radius) !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    background: #fff !important;
    transition: all 0.3s !important;
}
body.u4ur-auth .btn-outline-primary:hover {
    border-color: var(--u4ur-primary) !important;
    color: var(--u4ur-primary) !important;
}
body.u4ur-auth header a {
    color: var(--u4ur-primary) !important;
}

/* ========== FOOTER IMPROVEMENTS ========== */
footer[role="contentinfo"] {
    background: var(--u4ur-dark) !important;
}
footer[role="contentinfo"],
footer[role="contentinfo"] * {
    color: rgba(255,255,255,0.7) !important;
}
footer[role="contentinfo"] h6,
footer[role="contentinfo"] .fw-bold {
    color: #fff !important;
}
footer[role="contentinfo"] a:hover {
    color: var(--u4ur-primary-light) !important;
}
footer .bg-secondary {
    background: var(--u4ur-dark) !important;
}

/* Hide Zid's default contact/follow section (but NOT our #u4ur-social bar) */
footer[role="contentinfo"] .footer-contact,
footer[role="contentinfo"] [class*="follow"],
footer[role="contentinfo"] [class*="contact-info"],
footer[role="contentinfo"] [class*="social-links"]:not(#u4ur-social *) {
    display: none !important;
}

/* ========== SOCIAL MEDIA BAR (footer, injected by JS) ========== */
#u4ur-social {
    background: var(--u4ur-navy);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
#u4ur-social .social-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
#u4ur-social .social-label {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 600;
}
#u4ur-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: #fff !important;
    transition: all 0.3s ease;
    text-decoration: none;
}
#u4ur-social .social-link:hover {
    background: var(--u4ur-primary);
    transform: translateY(-2px);
}
#u4ur-social .social-phone {
    font-size: 14px;
    font-weight: 600;
    margin-right: 8px;
}
#u4ur-social .social-phone a {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
    transition: color 0.3s;
}
#u4ur-social .social-phone a:hover {
    color: #fff !important;
}
#u4ur-social .social-divider {
    color: rgba(255,255,255,0.3);
    margin: 0 8px;
}

/* ========== WHATSAPP FLOATING BUTTON ========== */
#u4ur-whatsapp-float {
    position: fixed;
    bottom: 76px;
    right: 16px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: u4ur-pulse 2s infinite;
}
#u4ur-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}
#u4ur-whatsapp-float svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}
#u4ur-whatsapp-float .wa-tooltip {
    position: absolute;
    right: 70px;
    background: #fff;
    color: #333;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    font-family: 'Tajawal', sans-serif;
}
#u4ur-whatsapp-float:hover .wa-tooltip {
    opacity: 1;
}
@keyframes u4ur-pulse {
    0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}

/* ========== COMPACT ZID STICKY BOTTOM BAR ========== */
/* JS applies .u4ur-shrunk-bar class to the detected sticky bottom bar */
/* Bar container — taller than its contents */
.u4ur-shrunk-bar {
    padding: 8px 10px !important;
    min-height: unset !important;
    height: auto !important;
    max-height: 90px !important;
    gap: 4px !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}
/* All action buttons — uniform 36px height */
.u4ur-shrunk-bar .btn,
.u4ur-shrunk-bar button,
.u4ur-shrunk-bar a[class*="btn"],
.u4ur-shrunk-bar a.btn {
    padding: 0 12px !important;
    min-height: unset !important;
    height: 36px !important;
    max-height: 36px !important;
    font-size: 12px !important;
    line-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
/* Quantity container — same 36px height */
.u4ur-shrunk-bar [class*="quantity"],
.u4ur-shrunk-bar [class*="counter"] {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    height: 36px !important;
}
/* +/- buttons inside quantity */
.u4ur-shrunk-bar [class*="quantity"] button,
.u4ur-shrunk-bar [class*="counter"] button {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 36px !important;
}
/* Number input inside quantity */
.u4ur-shrunk-bar [class*="quantity"] input,
.u4ur-shrunk-bar [class*="counter"] input {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 36px !important;
}
/* Price */
.u4ur-shrunk-bar [class*="price"] {
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 36px !important;
    height: 36px !important;
}
/* All other text */
.u4ur-shrunk-bar span,
.u4ur-shrunk-bar p,
.u4ur-shrunk-bar div {
    font-size: 12px !important;
    line-height: 1.3 !important;
}
.u4ur-shrunk-bar svg {
    width: 16px !important;
    height: 16px !important;
}
/* Hide wishlist/heart button */
.u4ur-shrunk-bar [class*="wish"],
.u4ur-shrunk-bar [class*="heart"],
.u4ur-shrunk-bar [class*="favorite"],
.u4ur-shrunk-bar [class*="like"] {
    display: none !important;
}

/* ========== HIDE SKU, BARCODE, PRODUCT CODE ========== */
[class*="sku"],
[class*="product-code"],
[class*="barcode"] {
    display: none !important;
}

/* ========== PRODUCT SUMMARY CARD ========== */
#u4ur-product-summary {
    background: var(--u4ur-light);
    border-right: 4px solid var(--u4ur-primary);
    border-radius: var(--u4ur-radius);
    padding: 20px 24px;
    margin-bottom: 20px;
    font-family: 'Tajawal', sans-serif;
}
#u4ur-product-summary h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--u4ur-dark);
    margin-bottom: 12px;
}
#u4ur-product-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#u4ur-product-summary li {
    padding: 6px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}
#u4ur-product-summary li strong {
    color: var(--u4ur-dark);
}

/* ========== READ MORE TOGGLE ========== */
#u4ur-read-more {
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
}
#u4ur-read-more span {
    color: var(--u4ur-primary);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
}
#u4ur-read-more:hover span {
    color: var(--u4ur-primary-dark);
}

/* ========== HIDE STOCK COUNT (fixes 997 vs "limited" contradiction) ========== */
[class*="stock"],
[class*="quantity-available"],
[class*="in-stock"],
.product-details [class*="remaining"],
.product-details [class*="available"],
.product-details [class*="متبقي"],
.product-details [class*="متوفر"] {
    display: none !important;
}

/* ========== HIDE ZID DEFAULT "FOLLOW US" SECTION ========== */
section[class*="follow"],
section[class*="social"],
div[class*="follow-us"],
div[class*="store-social"],
[class*="section-follow"],
[class*="section-social"],
.footer-follow,
.store-follow,
/* Common Zid theme section wrappers with globe/email/phone icons */
footer [class*="globe"],
footer [class*="follow"] {
    display: none !important;
}

/* ========== EMAIL CAPTURE POPUP ========== */
#u4ur-email-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}
#u4ur-email-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
#u4ur-email-popup {
    background: #fff;
    border-radius: 20px;
    padding: 40px 32px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}
#u4ur-email-overlay.active #u4ur-email-popup {
    transform: translateY(0);
}
#u4ur-email-popup .popup-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f1f1f1;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s;
}
#u4ur-email-popup .popup-close:hover {
    background: #e0e0e0;
}
#u4ur-email-popup .popup-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
#u4ur-email-popup h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--u4ur-dark);
    margin-bottom: 8px;
}
#u4ur-email-popup p {
    font-size: 15px;
    color: var(--u4ur-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}
#u4ur-email-popup .popup-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: var(--u4ur-radius);
    font-size: 16px;
    font-family: 'Tajawal', sans-serif;
    text-align: center;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.3s;
    direction: ltr;
}
#u4ur-email-popup .popup-input:focus {
    border-color: var(--u4ur-primary);
}
#u4ur-email-popup .popup-btn {
    width: 100%;
    padding: 14px;
    background: var(--u4ur-primary);
    color: #fff;
    border: none;
    border-radius: var(--u4ur-radius);
    font-size: 16px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
}
#u4ur-email-popup .popup-btn:hover {
    background: var(--u4ur-primary-dark);
}
#u4ur-email-popup .popup-skip {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: var(--u4ur-gray);
    cursor: pointer;
    text-decoration: underline;
}

/* ========== PRODUCT PAGE URGENCY BAR ========== */
#u4ur-urgency {
    background: linear-gradient(90deg, #fff3cd, #fff8e1) !important;
    border: 1px solid #ffc107 !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    margin: 16px 0 !important;
    display: none !important;
    align-items: center !important;
    gap: 10px !important;
    font-family: 'Tajawal', sans-serif !important;
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}
#u4ur-urgency.visible {
    display: flex !important;
}
#u4ur-urgency .urgency-icon {
    font-size: 22px !important;
    flex-shrink: 0 !important;
}
#u4ur-urgency .urgency-text {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #856404 !important;
    line-height: 1.5 !important;
    flex: 1 !important;
}
#u4ur-urgency .urgency-text strong {
    color: var(--u4ur-primary) !important;
}

/* ========== CHECKOUT MODAL FIX ========== */
/* Fix: background content leaking on left/right corners of checkout overlay */
/* Narrowed selectors — only target actual checkout overlays, not cart sidebar */
.zid-checkout-overlay,
.checkout-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99990 !important;
}

/* Checkout modal/iframe on top */
[class*="checkout-modal"],
[class*="payment-modal"],
iframe[src*="checkout"],
iframe[src*="payment"] {
    z-index: 99991 !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    #u4ur-hero .hero-container {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }
    #u4ur-hero h1 {
        font-size: 34px;
    }
    #u4ur-hero .hero-btns {
        justify-content: center;
    }
    #u4ur-hero .hero-visual {
        display: none;
    }
    #u4ur-features .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    #u4ur-trust-bar .trust-container {
        justify-content: center;
    }
}
@media (max-width: 575px) {
    #u4ur-whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 70px;
        right: 12px;
    }
    #u4ur-whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    #u4ur-whatsapp-float .wa-tooltip {
        display: none;
    }
    #u4ur-hero {
        min-height: 400px;
        padding: 40px 0;
    }
    #u4ur-hero h1 {
        font-size: 28px;
    }
    #u4ur-hero .hero-desc {
        font-size: 16px;
    }
    #u4ur-hero .hero-btns {
        flex-direction: column;
    }
    #u4ur-hero .btn-hero-primary,
    #u4ur-hero .btn-hero-outline {
        width: 100%;
        text-align: center;
    }
    #u4ur-features .features-grid {
        grid-template-columns: 1fr;
    }
    #u4ur-cta h2 {
        font-size: 26px;
    }
}