/* Provider-profile styles are loaded only on public provider profile routes.
 * This keeps provider-only rules out of the homepage critical CSS bundle.
 */

/* Source: styles/provider_styles.css */
:root{  
  --primary:#0d4d3c;  
  --primary-dark:#083328;  
  --primary-light:#1a6b54;  
  --gold:#d4a84b;  
  --gold-light:#e8c277;  
  --bg:#f7f5f0;  
  --bg-alt:#efece4;  
  --text:#1a1a1a;  
  --muted:#6b6b6b;  
  --white:#fff;  
  --success:#10b981;  
  --warning:#f59e0b;  
  --danger:#ef4444;  
  --shadow-sm:0 2px 8px rgba(0,0,0,0.06);  
  --shadow:0 10px 30px rgba(13,77,60,0.1);  
  --shadow-lg:0 20px 50px rgba(13,77,60,0.15);  
  --radius:14px;  
  --radius-sm:10px;  
  --radius-lg:20px;  
  --marketplace:#1e3a8a;  
  --marketplace-light:#3b82f6;  
}  

.container{max-width:1280px;margin:0 auto;padding:0 20px}  
  
/* ===== BREADCRUMB ===== */  
.breadcrumb{  
  background:white;  
  padding:14px 0;  
  border-bottom:1px solid #eee;  
  font-size:13px;  
}  
.breadcrumb-list{display:flex;align-items:center;gap:8px;flex-wrap:wrap;list-style:none;margin:0;padding:0}  
.breadcrumb-list li{display:flex;align-items:center;gap:8px;color:var(--muted)}  
.breadcrumb-list li a{color:var(--marketplace);font-weight:700;transition:color .3s}  
.breadcrumb-list li a:hover{color:var(--primary)}  
.breadcrumb-list li.active{color:var(--text);font-weight:700}  
.breadcrumb-list i{font-size:10px;color:#ccc}  
  
/* ===== TRUST BAR ===== */  
.trust-bar{  
  background:linear-gradient(90deg,var(--success) 0%,#059669 100%);  
  color:white;  
  padding:14px 0;  
}  
.trust-bar-inner{display:flex;justify-content:center;gap:24px;flex-wrap:wrap;font-size:13px;font-weight:700}  
.trust-bar-item{display:flex;align-items:center;gap:8px}  
.trust-bar-item i{background:rgba(255,255,255,0.2);width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px}  
  
/* ===== PROVIDER HERO ===== */  
.provider-hero{  
  color:white;  
  padding:60px 0 80px;  
  position:relative;  
  overflow:hidden;  
  background-size: cover;
  background-position: center;
}  
.provider-hero::before{  
  content:'';position:absolute;top:-50%;left:-10%;  
  width:600px;height:600px;border-radius:50%;  
  background:radial-gradient(circle,rgba(212,168,75,0.15) 0%,transparent 70%);  
}  
.provider-hero-inner{display:grid;grid-template-columns:1fr auto;gap:40px;align-items:center;position:relative;z-index:2}  
.provider-badge{  
  display:inline-flex;align-items:center;gap:8px;  
  background:rgba(212,168,75,0.2);border:1px solid var(--gold);  
  padding:6px 14px;border-radius:30px;font-size:12px;font-weight:700;  
  color:var(--gold-light);margin-bottom:16px;  
}  
.provider-hero h1{  
  font-size:clamp(28px,4vw,46px);font-weight:900;line-height:1.25;margin-bottom:14px;  
}  
.provider-hero h1 .highlight{color:var(--gold)}  
.provider-subtitle{font-size:17px;opacity:.95;margin-bottom:20px;max-width:640px}  
.provider-meta{display:flex;gap:20px;flex-wrap:wrap;margin-bottom:24px;font-size:14px}  
.provider-meta-item{display:flex;align-items:center;gap:8px}  
.provider-meta-item i{color:var(--gold)}  
.provider-rating{  
  display:inline-flex;align-items:center;gap:10px;  
  background:rgba(255,255,255,0.1);backdrop-filter:blur(10px);  
  padding:10px 18px;border-radius:30px;border:1px solid rgba(255,255,255,0.2);  
}  
.provider-rating .stars{color:var(--gold);font-size:14px}  
.provider-rating strong{font-size:18px}  
.provider-rating span{font-size:13px;opacity:.85}  
.provider-actions{display:flex;flex-direction:column;gap:12px;min-width:260px}  
.pa-btn{  
  padding:14px 22px;border-radius:12px;font-weight:700;font-size:14px;  
  display:flex;align-items:center;justify-content:center;gap:10px;  
  transition:all .3s;  
}  
.pa-btn-primary{background:var(--gold);color:var(--primary-dark)}  
.pa-btn-primary:hover{background:var(--gold-light);transform:translateY(-2px);box-shadow:0 10px 25px rgba(212,168,75,0.4)}  
.pa-btn-whatsapp{background:#25d366;color:white}  
.pa-btn-whatsapp:hover{background:#1da851;transform:translateY(-2px)}  
.pa-btn-call{background:white;color:var(--primary-dark)}  
.pa-btn-call:hover{background:var(--bg);transform:translateY(-2px)}  
.pa-btn-ghost{background:transparent;color:white;border:2px solid rgba(255,255,255,0.3)}  
.pa-btn-ghost:hover{background:white;color:var(--primary-dark);border-color:white}  
  
/* ===== QUICK STATS ===== */  
.quick-stats{  
  background:white;  
  margin-top:-40px;  
  border-radius:var(--radius-lg);  
  box-shadow:var(--shadow-lg);  
  padding:28px;  
  position:relative;z-index:3;  
  display:grid;  
  grid-template-columns:repeat(5,1fr);  
  gap:20px;  
}  
.qs-item{text-align:center;padding:10px;border-left:1px solid #eee}  
.qs-item:last-child{border:none}  
.qs-num{font-size:28px;font-weight:900;color:var(--primary);display:block;line-height:1}  
.qs-label{font-size:13px;color:var(--muted);margin-top:6px}  
  
/* ===== SECTIONS ===== */  
section{padding:80px 0}  
.section-head{text-align:center;margin-bottom:50px}  
.section-tag{  
  display:inline-block;background:rgba(13,77,60,0.08);color:var(--primary);  
  padding:6px 16px;border-radius:20px;font-size:12px;font-weight:700;  
  margin-bottom:14px;  
}  
.section-head h2{font-size:clamp(24px,3.5vw,36px);font-weight:900;color:var(--primary);margin-bottom:12px;line-height:1.3}  
.section-head p{color:var(--muted);max-width:640px;margin:0 auto;font-size:15px}  
  
/* ===== PROVIDER INFO CARD ===== */  
.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:start}  
.info-card{  
  background:white;border-radius:var(--radius-lg);padding:32px;  
  box-shadow:var(--shadow);  
}  
.info-card h3{font-size:20px;font-weight:900;color:var(--primary);margin-bottom:18px;display:flex;align-items:center;gap:10px}  
.info-card h3 i{color:var(--gold)}  
.info-list{list-style:none;padding:0;margin:0}  
.info-list li{  
  display:flex;align-items:flex-start;gap:12px;padding:12px 0;  
  border-bottom:1px dashed #eee;font-size:14px;  
}  
.info-list li:last-child{border:none}  
.info-list li i{color:var(--gold);margin-top:4px;min-width:18px}  
.info-list li strong{color:var(--primary);min-width:110px;display:inline-block}  
.verified-badge{  
  display:inline-flex;align-items:center;gap:6px;  
  background:rgba(16,185,129,0.1);color:var(--success);  
  padding:4px 10px;border-radius:20px;font-size:11px;font-weight:700;  
}  
.license-card{  
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));  
  color:white;border-radius:var(--radius);padding:20px;margin-top:18px;  
  display:flex;align-items:center;gap:16px;  
}  
.license-card i{font-size:32px;color:var(--gold)}  
.license-card strong{display:block;font-size:15px;margin-bottom:2px}  
.license-card span{font-size:12px;opacity:.85}  
  
/* ===== SERVICES GRID ===== */  
.services-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}  
.service-card{  
  background:white;border-radius:var(--radius);padding:26px;  
  box-shadow:var(--shadow-sm);transition:all .3s;  
  border:1px solid rgba(0,0,0,0.04);cursor:pointer;  
  position:relative;overflow:hidden;  
}  
.service-card::before{  
  content:'';position:absolute;top:0;right:0;width:100%;height:3px;  
  background:linear-gradient(90deg,var(--primary),var(--gold));  
  transform:scaleX(0);transform-origin:right;transition:transform .4s;  
}  
.service-card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}  
.service-card:hover::before{transform:scaleX(1)}  
.service-icon{  
  width:56px;height:56px;border-radius:14px;  
  background:linear-gradient(135deg,rgba(13,77,60,0.1),rgba(212,168,75,0.15));  
  display:flex;align-items:center;justify-content:center;  
  font-size:24px;color:var(--primary);margin-bottom:16px;  
  transition:all .3s;  
}  
.service-card:hover .service-icon{  
  background:linear-gradient(135deg,var(--primary),var(--gold));  
  color:white;transform:rotate(-6deg) scale(1.05);  
}  
.service-card h4{font-size:17px;font-weight:900;color:var(--primary);margin-bottom:8px}  
.service-card p{color:var(--muted);font-size:13px;margin-bottom:12px}  
.service-card ul{list-style:none;padding:0;margin:0}  
.service-card li{font-size:12px;padding:4px 0;display:flex;align-items:center;gap:8px}  
.service-card li i{color:var(--gold);font-size:10px}  
.service-cta{  
  display:inline-flex;align-items:center;gap:6px;  
  margin-top:14px;color:var(--primary);font-weight:700;font-size:13px;  
  transition:gap .3s;  
}  
.service-card:hover .service-cta{gap:10px;color:var(--gold)}  
  
/* ===== CTA STRIP ===== */  
.cta-strip{  
  background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);  
  color:white;border-radius:var(--radius-lg);padding:30px;  
  display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;  
  margin-top:40px;  
}  
.cta-strip h4{font-size:20px;font-weight:900;margin-bottom:4px}  
.cta-strip p{opacity:.9;font-size:14px}  
.cta-strip-actions{display:flex;gap:10px;flex-wrap:wrap}  
.cta-strip .btn{padding:12px 22px;border-radius:30px;font-weight:700;font-size:13px;display:inline-flex;align-items:center;gap:8px;transition:all .3s}  
.btn-gold{background:var(--gold);color:var(--primary-dark)}  
.btn-gold:hover{background:var(--gold-light);transform:translateY(-2px)}  
.btn-white{background:white;color:var(--primary-dark)}  
.btn-white:hover{background:var(--gold);transform:translateY(-2px)}  

/* ===== RESPONSIVE ===== */  
@media(max-width:960px){  
  .provider-hero-inner{grid-template-columns:1fr}  
  .provider-actions{flex-direction:row;flex-wrap:wrap;min-width:auto}  
  .provider-actions .pa-btn{flex:1;min-width:140px}  
  .quick-stats{grid-template-columns:repeat(3,1fr);margin-top:-30px}  
  .qs-item:nth-child(3){border:none}  
  .qs-item:nth-child(4),.qs-item:nth-child(5){border-top:1px solid #eee;padding-top:16px}  
  .info-grid{grid-template-columns:1fr}  
  section{padding:60px 0}  
}  
@media(max-width:560px){  
  .quick-stats{grid-template-columns:1fr 1fr}  
  .qs-item{border-left:none;border-bottom:1px solid #eee}  
  .qs-item:last-child{border:none}  
  .cta-strip{flex-direction:column;text-align:center}  
}

/* Source: styles/provider_product_cards.css */
/*
 * Provider product cards
 * Compact, reusable presentation for product cards inside provider profiles.
 * The content, IDs and interaction layer remain unchanged.
 */

#products {
  --product-green: #0f3f1a;
  --product-gold: #c9952a;
  --product-border: #e4d7c1;
  --product-muted: #625a50;
}

#products > .mt-8.grid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 1rem !important;
}

#products article[data-product-id] {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--product-border) !important;
  border-radius: 1.55rem !important;
  background: #fff;
  box-shadow: 0 12px 32px rgba(67, 45, 17, 0.09) !important;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

#products article[data-product-id]:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 149, 42, 0.48) !important;
  box-shadow: 0 22px 52px rgba(67, 45, 17, 0.14) !important;
}

/* Compact visual area — mirrors the service-card proportions. */
#products article[data-product-id] > div:first-child {
  position: relative;
  height: 8.75rem !important;
  min-height: 0 !important;
  isolation: isolate;
  align-items: initial !important;
  justify-content: initial !important;
  background-color: #d9c39c !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

#products article[data-product-id='BR-PRD-ARK-001'] > div:first-child {
  background-image: linear-gradient(180deg, rgba(7, 24, 12, 0.04), rgba(7, 24, 12, 0.52)), url('/images/providers/arkleen-premium/product-custom-kitchen.webp') !important;
}

#products article[data-product-id='BR-PRD-ARK-002'] > div:first-child {
  background-image: linear-gradient(180deg, rgba(7, 24, 12, 0.04), rgba(7, 24, 12, 0.52)), url('/images/providers/arkleen-premium/product-custom-wardrobe.webp') !important;
}

#products article[data-product-id='BR-PRD-ARK-003'] > div:first-child {
  background-image: linear-gradient(180deg, rgba(7, 24, 12, 0.04), rgba(7, 24, 12, 0.52)), url('/images/providers/arkleen-premium/product-custom-door.webp') !important;
}

/* Category label. */
#products article[data-product-id] [data-product-category] {
  z-index: 3;
  padding: 0.42rem 0.72rem !important;
  border: 1px solid rgba(255, 255, 255, 0.58);
  font-size: 0.68rem !important;
  line-height: 1;
  backdrop-filter: blur(12px);
}

/* Price remains a compact badge; the former broad span selector stretched it
 * between top and bottom and created the large green panels seen on mobile. */
#products article[data-product-id] [data-product-price-badge] {
  z-index: 3;
  top: auto !important;
  bottom: 0.75rem !important;
  width: auto !important;
  height: auto !important;
  max-width: calc(100% - 1.5rem);
  padding: 0.5rem 0.75rem !important;
  border-radius: 0.85rem !important;
  font-size: 0.75rem !important;
  line-height: 1.25;
  white-space: nowrap;
}

/* Secondary visual label, without adding markup. */
#products article[data-product-id] > div:first-child::before {
  content: 'منتج أركلين';
  position: absolute;
  z-index: 3;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(15, 63, 26, 0.86);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

[dir='ltr'] #products article[data-product-id] > div:first-child::before {
  content: 'ARKLEEN product';
}

/* Content is intentionally dense and easy to scan. */
#products article[data-product-id] > div:nth-child(2) {
  padding: 1rem !important;
}

#products article[data-product-id] > div:nth-child(2) > div:first-child {
  align-items: flex-start;
  gap: 0.55rem !important;
}

#products article[data-product-id] h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1.05rem !important;
  line-height: 1.55 !important;
}

#products article[data-product-id] h3 + span {
  flex: 0 0 auto;
  padding: 0.28rem 0.5rem !important;
  font-size: 0.55rem !important;
}

#products article[data-product-id] > div:nth-child(2) > p {
  display: -webkit-box;
  min-height: 2.75rem;
  margin-top: 0.45rem !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--product-muted);
  font-size: 0.84rem;
  line-height: 1.65 !important;
}

#products article[data-product-id] > div:nth-child(2) > div:nth-of-type(2) {
  min-height: 0;
  margin-top: 0.7rem !important;
  padding: 0.62rem 0.75rem !important;
  gap: 0.55rem;
  border: 1px solid #eee4d3;
  border-radius: 0.9rem !important;
  background: #fcfaf6 !important;
  font-size: 0.72rem !important;
  line-height: 1.35;
}

#products article[data-product-id] > div:nth-child(2) > a[href*='productId='] {
  min-height: 2.75rem !important;
  margin-top: 0.75rem !important;
  padding: 0.65rem 0.9rem !important;
  border-color: rgba(201, 149, 42, 0.62) !important;
  border-radius: 0.9rem !important;
  background: linear-gradient(180deg, #fffdf7, #fff8e7) !important;
  font-size: 0.8rem !important;
  box-shadow: 0 5px 0 rgba(136, 93, 18, 0.08);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

#products article[data-product-id] > div:nth-child(2) > a[href*='productId=']:hover,
#products article[data-product-id] > div:nth-child(2) > a[href*='productId=']:focus-visible {
  transform: translateY(-2px);
  background: #fff4d5 !important;
  box-shadow: 0 8px 0 rgba(136, 93, 18, 0.1);
  outline: none;
}

@media (min-width: 640px) {
  #products article[data-product-id] > div:first-child {
    height: 9.5rem !important;
  }
}

@media (min-width: 768px) {
  #products > .mt-8.grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
  }

  #products article[data-product-id] {
    border-radius: 2rem !important;
  }

  #products article[data-product-id] > div:first-child {
    height: 10.75rem !important;
  }

  #products article[data-product-id] > div:nth-child(2) {
    padding: 1.15rem !important;
  }

  #products article[data-product-id] h3 {
    font-size: 1.12rem !important;
  }

  #products article[data-product-id] > div:nth-child(2) > p {
    font-size: 0.9rem;
  }
}

@media (min-width: 1180px) {
  #products > .mt-8.grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #products article[data-product-id],
  #products article[data-product-id] > div:nth-child(2) > a[href*='productId='] {
    transition: none !important;
  }
}

/* Source: styles/arkleen_provider_preview.css */
/* Review-only ARKLEEN provider UI treatment.
 * Keeps the profile image container unchanged and swaps only the displayed logo asset.
 */
img[alt="شعار أركلين لأعمال النجارة والتصميم الداخلي"],
img[alt="ARKLEEN Carpentry & Interior Design logo"],
img[alt="Arkline Carpentry & Interior Design logo"] {
  content: url("/images/providers/arkleen-logo.png") !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 4px !important;
  object-fit: contain !important;
  background: #ffffff !important;
}
