/* ===== Dalil Kuwait - home page refresh (2026-12-06)
   Visual only: colors, font, spacing, cards. No content, links or text changed.
   To undo: remove the <link> to home-refresh.css at the end of <head><meta charset="utf-8"> in application/views/home.php ===== */
:root{--dk-green:#0e5a43;--dk-green-d:#0a4232;--dk-red:#d93838;--dk-gold:#f2b632;--dk-bg:#f6f7f5;--dk-card:#fff;--dk-text:#1d2a25;--dk-muted:#6b7772;--dk-radius:14px;--dk-shadow:0 2px 10px rgba(16,42,33,.08);--dk-shadow-h:0 8px 24px rgba(16,42,33,.14)}
html{-webkit-text-size-adjust:100%}
body{font-family:'Tajawal',-apple-system,'Segoe UI',Tahoma,Arial,sans-serif !important;background:var(--dk-bg) !important;color:var(--dk-text)}
body h1,body h2,body h3,body h4,body h5,body h6,body p,body a,body .btn,body .form-control,body .custom-select,body button,body input{font-family:'Tajawal',-apple-system,'Segoe UI',Tahoma,Arial,sans-serif !important}
img{max-width:100%}
header.header{background:#fff !important;box-shadow:0 1px 0 rgba(0,0,0,.06),0 4px 14px rgba(0,0,0,.04);position:relative;z-index:20}
header .information-nav .nav li a{background:transparent !important;color:var(--dk-green) !important;border:1.5px solid var(--dk-green) !important;border-radius:999px !important;padding:7px 18px !important;font-weight:700 !important;font-size:14px !important;transition:all .2s}
header .information-nav .nav li a:hover{background:var(--dk-green) !important;color:#fff !important}
header .information-nav .nav li:nth-child(3) a{background:var(--dk-green) !important;color:#fff !important}
header .custom-select{border-radius:999px !important;border:1.5px solid #d9dfdc !important;height:38px !important;font-size:14px !important}
.mobile-lang .btn{background:var(--dk-green) !important;border-radius:999px !important}
.subheader{background:linear-gradient(90deg,var(--dk-green-d),var(--dk-green)) !important;padding:10px 0 !important;height:auto !important}
.subheader .holder{align-items:center}
.subheader .search-store .form-control{height:44px !important;line-height:normal !important;font-size:16px !important;border:0 !important;border-radius:0 12px 12px 0 !important;padding:0 16px !important;box-shadow:none !important}
.subheader .search-store .btn-info{height:44px !important;line-height:normal !important;background:var(--dk-gold) !important;border:0 !important;color:#2b2200 !important;font-weight:800 !important;font-size:16px !important;padding:0 22px !important;border-radius:12px 0 0 12px !important}
.subheader .city-menu .btn,.btn-cities{height:44px !important;line-height:normal !important;background:#fff !important;border:0 !important;color:var(--dk-green) !important;font-weight:800 !important;border-radius:12px !important;padding:0 18px !important}
.subheader .top-menu-item{color:#fff !important;font-weight:700}
.home-wrap{padding-top:14px}
.hero-content .flexslider{border:0 !important;border-radius:var(--dk-radius) !important;overflow:hidden;box-shadow:var(--dk-shadow);margin-bottom:14px !important;background:#fff}
.hero-content .flexslider .slides img{border-radius:var(--dk-radius)}
.hero-content .sponsor-container,.sponsor-container{padding:6px 0 !important}
.sponsor-container .equalContent{display:flex !important;flex-wrap:wrap;justify-content:center;gap:14px;margin:0 auto !important;max-width:100%;padding:0 !important}
.sponsors-div{flex:0 0 auto;background:#fff;border-radius:var(--dk-radius);box-shadow:var(--dk-shadow);padding:10px;transition:transform .2s,box-shadow .2s}
.sponsors-div:hover{transform:translateY(-3px);box-shadow:var(--dk-shadow-h)}
.sponsors-div img{width:120px !important;height:120px !important;margin:0 !important;object-fit:contain;display:block}
.categories h3,.latest-products h3{font-size:24px !important;font-weight:800 !important;color:var(--dk-text) !important;margin:22px 0 16px !important;padding-bottom:10px;position:relative;border:0 !important}
.categories h3:after,.latest-products h3:after{content:"";position:absolute;bottom:0;right:0;width:56px;height:4px;border-radius:4px;background:var(--dk-red)}
section.categories,section.latest-products{padding-top:6px !important}
.latest-products{padding-bottom:10px !important}
.categories .services .content{background:var(--dk-card) !important;border-radius:var(--dk-radius) !important;box-shadow:var(--dk-shadow) !important;height:auto !important;overflow:hidden;transition:transform .2s,box-shadow .2s;margin:0 0 18px !important}
.categories .services .content:hover{transform:translateY(-4px);box-shadow:var(--dk-shadow-h) !important}
.categories .services .content a{display:block;text-decoration:none}
.categories .services .content img{width:100% !important;height:auto !important;aspect-ratio:4/3;object-fit:cover !important;display:block;background:#eef1ef}
.categories .services .content h4{position:static !important;background:transparent !important;color:var(--dk-text) !important;font-size:14px !important;font-weight:700 !important;line-height:1.45 !important;padding:10px 8px 12px !important;margin:0 !important;text-align:center;white-space:normal !important;min-height:52px;display:flex;align-items:center;justify-content:center;width:auto !important;transform:none !important;left:auto !important;right:auto !important;bottom:auto !important}
.col-lg-2.col-md-3.col-sm-4{margin-bottom:0 !important}
.latest-products .product .content,.latest-products .lazy_loader_data .content{background:#fff !important;border-radius:var(--dk-radius) !important;box-shadow:var(--dk-shadow) !important;overflow:hidden;padding:0 0 6px !important;margin-bottom:22px !important;transition:transform .2s,box-shadow .2s;border:0 !important}
.latest-products .content:hover{transform:translateY(-4px);box-shadow:var(--dk-shadow-h) !important}
.latest-products .content img{width:100% !important;height:auto !important;aspect-ratio:1/1;object-fit:cover;display:block}
.latest-products .content h4{font-size:16px !important;color:var(--dk-text) !important;margin:12px 12px 4px !important}
.latest-products .content p,.latest-products .content h6{margin:2px 12px !important;color:var(--dk-muted) !important;font-size:13.5px !important}
.footer-upper{background:var(--dk-green-d) !important;color:#e8f1ed !important;padding-top:28px !important;margin-top:30px}
.footer-upper h4{color:#fff !important;font-weight:800 !important}
.footer-upper p,.footer-upper a{color:#cfe1d9 !important}
.footer-bottom p{color:#a9c4b8 !important;font-size:13px}
#footer-msg{background:var(--dk-green) !important;box-shadow:0 -4px 14px rgba(0,0,0,.15);z-index:30}
@media (max-width:767px){
 .sponsors-div{padding:6px;border-radius:12px}
 .sponsors-div img{width:84px !important;height:84px !important}
 .sponsor-container .equalContent{gap:10px}
 .categories .services{margin:0 -6px}
 .categories .services>div{flex:0 0 50%;max-width:50%;padding:0 6px}
 .categories h3,.latest-products h3{font-size:20px !important}
 .mobile-lang .btn{min-height:36px}
 header .header-content .mobile-lang .btn{line-height:26px !important;font-size:12px !important;border-radius:999px !important}
}
@media (min-width:768px) and (max-width:991px){.categories .services>div{flex:0 0 33.333%;max-width:33.333%}}
/* Latest stores - smaller cards (2026-12-06): 2 per row on mobile, 5 per row on desktop */
@media (max-width:767px){
 .latest-products .lazy_loader,.latest-products .lazy_loader_data{margin:0 -6px !important}
 .latest-products .lazy_loader>div,.latest-products .lazy_loader_data>div{flex:0 0 50% !important;max-width:50% !important;padding:0 6px !important}
 .latest-products .content{margin-bottom:12px !important;border-radius:12px !important}
 .latest-products .content h4{font-size:14px !important;margin:8px 8px 2px !important;line-height:1.35 !important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .latest-products .content p,.latest-products .content h6{font-size:12px !important;margin:1px 8px !important;line-height:1.4 !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media (min-width:992px){.latest-products .lazy_loader>div,.latest-products .lazy_loader_data>div{flex:0 0 20% !important;max-width:20% !important}}
/* Footer / About us - tidy layout (2026-12-06) */
.footer-upper{padding:30px 0 18px !important}
.footer-upper .footer-blocks{width:100% !important;display:block !important;max-width:560px;margin:0 auto 18px !important;text-align:center !important;float:none !important}
.footer-upper .footer-blocks h4{font-size:18px !important;margin:0 0 12px !important;padding-bottom:10px;position:relative;display:inline-block}
.footer-upper .footer-blocks h4:after{content:"";position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:40px;height:3px;border-radius:3px;background:var(--dk-gold)}
.footer-upper .footer-blocks p{font-size:14px !important;line-height:1.9 !important;margin:0 !important;color:#d6e6df !important}
.footer-upper .footer-list{display:block !important;text-align:center !important;padding:0 !important;margin:0 !important}
.footer-upper .footer-list li{float:none !important;display:inline-block !important;padding:0 !important}
.footer-upper .footer-list li a{display:inline-block;border:1.5px solid rgba(255,255,255,.35);border-radius:999px;padding:8px 22px;color:#fff !important;font-weight:700;font-size:14px;transition:background .2s}
.footer-upper .footer-list li a:hover{background:rgba(255,255,255,.12);text-decoration:none}
.footer-upper .footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:6px !important;padding-top:14px}
.footer-upper .footer-bottom p{text-align:center !important;margin:0 !important}
@media (max-width:767px){
 .footer-upper{padding:24px 0 14px !important;margin-bottom:56px !important}
 .footer-upper .footer-blocks{padding:0 6px}
 .footer-upper .footer-blocks h4{font-size:17px !important}
 .footer-upper .footer-blocks p{font-size:13.5px !important}
}
/* Category cards - elegant frame + small motion (2026-12-06) */
.categories .services .content{border:2px solid transparent !important;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(140deg,#f2c14e 0%,#e8d9a8 35%,#0e5a43 100%) border-box !important;padding:6px !important;border-radius:18px !important;box-shadow:0 3px 12px rgba(14,90,67,.10) !important;position:relative}
.categories .services .content a{border-radius:12px;overflow:hidden}
.categories .services .content img{border-radius:12px !important;transition:transform .45s cubic-bezier(.2,.7,.2,1),filter .3s;will-change:transform}
.categories .services .content h4{position:relative !important;z-index:1;background:#fff !important;padding:8px 6px 16px !important;min-height:56px;flex:1 1 auto;transition:color .25s}
.categories .services .content h4:after{content:"";position:absolute;bottom:6px;left:50%;width:18px;height:3px;margin-left:-9px;border-radius:3px;background:#f2b632;transition:width .3s,margin-left .3s}
.categories .services .content:hover{transform:translateY(-4px);box-shadow:0 10px 26px rgba(14,90,67,.18) !important}
.categories .services .content:hover img{transform:scale(1.07)}
.categories .services .content:hover h4{color:#0e5a43 !important}
.categories .services .content:hover h4:after{width:44px;margin-left:-22px}
.categories .services .content:active{transform:scale(.97);transition:transform .1s}
@keyframes dkFadeUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@supports (animation-timeline: view()){
 .categories .services>div{animation:dkFadeUp linear both;animation-timeline:view();animation-range:entry 0% entry 45%}
}
@media (prefers-reduced-motion:reduce){.categories .services>div{animation:none !important}.categories .services .content img{transition:none}}
@media (max-width:767px){.categories .services .content{padding:5px !important;border-radius:16px !important}.categories .services .content h4{font-size:13.5px !important}}
.categories .services>div{display:flex}
.categories .services .content{width:100%;display:flex !important;flex-direction:column}
.categories .services .content a{flex:1 1 auto;display:flex !important;flex-direction:column}
/* Latest stores - equal card sizes on every device incl. older iPhones (2026-12-06) */
.latest-products .lazy_loader>div,.latest-products .lazy_loader_data>div{display:-webkit-box;display:-webkit-flex;display:flex}
.latest-products .content{width:100%;display:-webkit-flex !important;display:flex !important;-webkit-flex-direction:column;flex-direction:column;height:auto}
.latest-products .content img{width:100% !important;height:200px !important;-o-object-fit:cover;object-fit:cover;aspect-ratio:auto !important}
.latest-products .content h4{display:-webkit-box !important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em;line-height:1.35 !important}
.latest-products .content p,.latest-products .content h6{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.latest-products .content .store-primary-icon{margin-top:auto !important;min-height:46px;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;padding-bottom:6px}
.latest-products .content .store-primary-icon img{width:32px !important;height:32px !important}
@media (max-width:767px){
 .latest-products .content img{height:150px !important}
 .latest-products .content .store-primary-icon{min-height:40px}
 .latest-products .content .store-primary-icon img{width:30px !important;height:30px !important}
}
/* Sponsors 20% smaller (2026-12-06): 120->96 desktop, 84->67 mobile. Only sponsor logos are affected. */
.sponsors-div{padding:8px !important;border-radius:12px !important}
.sponsors-div img{width:96px !important;height:96px !important}
.sponsor-container .equalContent{gap:11px !important}
@media (max-width:767px){
 .sponsors-div{padding:5px !important;border-radius:10px !important}
 .sponsors-div img{width:67px !important;height:67px !important}
 .sponsor-container .equalContent{gap:8px !important}
}