/* ===========================
   EUROVESION SYSTEMS - Theme
   =========================== */
:root{
  --ev-dark:#0b1c3d;
  --ev-blue:#0f2a5e;
  --ev-blue-2:#173a85;
  --ev-yellow:#febd69;
  --ev-yellow-hover:#f3a847;
  --ev-orange:#ff9900;
  --ev-light:#f3f3f3;
  --ev-gray:#e7e9ec;
  --ev-text:#0f1111;
  --ev-muted:#565959;
  --ev-success:#067d62;
  --ev-danger:#b12704;
  --ev-shadow:0 6px 18px rgba(15,42,94,.12);
  --ev-shadow-hover:0 14px 30px rgba(15,42,94,.22);
}

*{box-sizing:border-box}
html,body{scroll-behavior:smooth}
body{
  font-family:'Inter','Segoe UI',Arial,sans-serif;
  background:#f7f8fa;
  color:var(--ev-text);
  margin:0;
}

a{text-decoration:none;color:inherit}
img{max-width:100%}

/* ---- Loader ---- */
#ev-loader{
  position:fixed;inset:0;z-index:9999;
  background:linear-gradient(135deg,var(--ev-dark),var(--ev-blue-2));
  display:flex;align-items:center;justify-content:center;
  transition:opacity .6s ease, visibility .6s;
}
#ev-loader.hidden{opacity:0;visibility:hidden}
.ev-loader-logo{
  color:#fff;font-weight:800;letter-spacing:2px;font-size:1.5rem;
  display:flex;flex-direction:column;align-items:center;gap:14px;
}
.ev-loader-logo .spinner{
  width:54px;height:54px;border-radius:50%;
  border:4px solid rgba(255,255,255,.25);
  border-top-color:var(--ev-yellow);
  animation:spin 1s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---- Navbar ---- */
.ev-navbar{
  background:linear-gradient(90deg,var(--ev-dark),var(--ev-blue-2));
  color:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,.15);
}
.ev-navbar .navbar-brand{
  font-weight:800;letter-spacing:1px;color:#fff;
  display:flex;align-items:center;gap:10px;
}
.ev-logo-mark{
  width:38px;height:38px;border-radius:10px;
  background:linear-gradient(135deg,var(--ev-yellow),var(--ev-orange));
  display:flex;align-items:center;justify-content:center;
  color:var(--ev-dark);font-weight:900;font-size:1.1rem;
  box-shadow:0 4px 10px rgba(254,189,105,.4);
}
.ev-brand-text small{display:block;font-size:.65rem;opacity:.8;font-weight:500;letter-spacing:2px}

.ev-search{flex:1;max-width:720px}
.ev-search .form-control{
  border:0;height:42px;border-radius:6px 0 0 6px;
}
.ev-search .form-select{
  max-width:130px;border:0;background:var(--ev-gray);
  border-radius:6px 0 0 6px;font-size:.85rem;
}
.ev-search .btn-search{
  background:var(--ev-yellow);border:0;height:42px;width:50px;
  border-radius:0 6px 6px 0;color:var(--ev-dark);font-weight:700;
}
.ev-search .btn-search:hover{background:var(--ev-yellow-hover)}

.ev-nav-link{
  color:#fff;display:flex;align-items:center;gap:6px;
  padding:8px 12px;border-radius:6px;font-size:.9rem;
  border:1px solid transparent;transition:.2s;
}
.ev-nav-link:hover{border-color:rgba(255,255,255,.4);color:#fff}
.ev-cart-badge{
  background:var(--ev-yellow);color:var(--ev-dark);
  font-size:.7rem;font-weight:800;border-radius:50%;
  padding:2px 7px;margin-left:4px;
}
.ev-subnav{
  background:#173a85;color:#fff;font-size:.85rem;
}
.ev-subnav a{color:#fff;padding:8px 14px;display:inline-block;border-radius:4px}
.ev-subnav a:hover{background:rgba(255,255,255,.1)}

/* ---- Hero ---- */
.ev-hero{
  position:relative;overflow:hidden;
  background:
    radial-gradient(circle at 80% 20%,rgba(254,189,105,.25),transparent 60%),
    linear-gradient(120deg,#0b1c3d 0%, #173a85 60%, #1e4ca8 100%);
  color:#fff;
  padding:90px 0 110px;
}
.ev-hero::before{
  content:"";position:absolute;inset:0;
  background:url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1600&q=60') center/cover;
  opacity:.18;mix-blend-mode:luminosity;
}
.ev-hero .container{position:relative;z-index:1}
.ev-hero h1{
  font-weight:800;font-size:clamp(2rem,4vw,3.4rem);line-height:1.1;
  animation:fadeUp .8s ease both;
}
.ev-hero h1 span{
  background:linear-gradient(90deg,var(--ev-yellow),#fff);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.ev-hero p{font-size:1.1rem;opacity:.9;max-width:560px;animation:fadeUp 1s ease both}
.ev-hero .btn-shop{
  background:var(--ev-yellow);border:0;color:var(--ev-dark);
  font-weight:700;padding:14px 30px;border-radius:50px;
  box-shadow:0 10px 25px rgba(254,189,105,.4);
  animation:fadeUp 1.2s ease both;transition:.25s;
}
.ev-hero .btn-shop:hover{transform:translateY(-3px);background:var(--ev-yellow-hover)}
.ev-hero-stats{display:flex;gap:30px;margin-top:30px;flex-wrap:wrap}
.ev-hero-stats div b{font-size:1.6rem;display:block;color:var(--ev-yellow)}
.ev-hero-stats div small{opacity:.8}

@keyframes fadeUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}

/* ---- Section ---- */
.ev-section{padding:70px 0}
.ev-section-title{
  font-weight:800;color:var(--ev-dark);
  position:relative;padding-bottom:12px;margin-bottom:30px;
}
.ev-section-title::after{
  content:"";position:absolute;bottom:0;left:0;width:60px;height:4px;
  background:var(--ev-yellow);border-radius:4px;
}

/* ---- Category cards ---- */
.ev-cat-card{
  background:#fff;border-radius:14px;overflow:hidden;
  box-shadow:var(--ev-shadow);text-align:center;
  padding:24px 14px;transition:.3s;cursor:pointer;height:100%;
}
.ev-cat-card:hover{transform:translateY(-6px);box-shadow:var(--ev-shadow-hover)}
.ev-cat-icon{
  width:64px;height:64px;border-radius:50%;
  background:linear-gradient(135deg,var(--ev-blue),var(--ev-blue-2));
  color:#fff;display:flex;align-items:center;justify-content:center;
  font-size:1.5rem;margin:0 auto 14px;
}
.ev-cat-card h6{font-weight:700;margin:0;color:var(--ev-dark)}

/* ---- Product cards ---- */
.ev-product{
  background:#fff;border-radius:14px;overflow:hidden;
  box-shadow:var(--ev-shadow);height:100%;
  display:flex;flex-direction:column;transition:.3s;position:relative;
}
.ev-product:hover{transform:translateY(-6px);box-shadow:var(--ev-shadow-hover)}
.ev-product .badge-tag{
  position:absolute;top:12px;left:12px;z-index:2;
  background:var(--ev-danger);color:#fff;font-size:.7rem;
  padding:4px 10px;border-radius:50px;font-weight:700;
}
.ev-product .wishlist{
  position:absolute;top:12px;right:12px;z-index:2;
  width:36px;height:36px;border-radius:50%;background:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,.1);cursor:pointer;
  color:#aaa;transition:.2s;
}
.ev-product .wishlist:hover,.ev-product .wishlist.active{color:#e0245e}
.ev-product .img-wrap{
  background:#f7f8fa;height:220px;display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}
.ev-product .img-wrap img{
  max-height:100%;max-width:100%;object-fit:contain;transition:.4s;
}
.ev-product:hover .img-wrap img{transform:scale(1.08)}
.ev-product .body{padding:16px;display:flex;flex-direction:column;flex:1}
.ev-product .title{
  font-weight:600;font-size:.95rem;color:var(--ev-text);
  display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  min-height:42px;
}
.ev-product .price{font-size:1.2rem;font-weight:800;color:var(--ev-dark)}
.ev-product .price .old{
  font-size:.85rem;color:var(--ev-muted);text-decoration:line-through;font-weight:500;margin-left:6px;
}
.ev-product .stars{color:#ffa41c;font-size:.85rem}
.ev-product .stars span{color:var(--ev-muted);margin-left:4px}
.ev-product .actions{display:flex;gap:8px;margin-top:auto;padding-top:12px}
.btn-cart{
  flex:1;background:var(--ev-yellow);border:0;color:var(--ev-dark);
  font-weight:700;border-radius:50px;padding:8px;font-size:.85rem;transition:.2s;
}
.btn-cart:hover{background:var(--ev-yellow-hover)}
.btn-buy{
  flex:1;background:var(--ev-orange);border:0;color:#fff;
  font-weight:700;border-radius:50px;padding:8px;font-size:.85rem;transition:.2s;
}
.btn-buy:hover{background:#e98800;color:#fff}
.btn-quick{
  position:absolute;bottom:80px;right:12px;z-index:2;
  width:36px;height:36px;border-radius:50%;background:#fff;border:0;
  box-shadow:0 2px 8px rgba(0,0,0,.1);opacity:0;transform:translateY(6px);
  transition:.25s;color:var(--ev-dark);
}
.ev-product:hover .btn-quick{opacity:1;transform:none}

/* ---- Cart sidebar ---- */
.ev-cart-side{
  position:fixed;top:0;right:-420px;height:100vh;width:400px;max-width:100%;
  background:#fff;z-index:1080;box-shadow:-10px 0 30px rgba(0,0,0,.15);
  transition:right .35s ease;display:flex;flex-direction:column;
}
.ev-cart-side.open{right:0}
.ev-cart-side header{
  padding:18px 20px;background:var(--ev-dark);color:#fff;
  display:flex;justify-content:space-between;align-items:center;
}
.ev-cart-side .items{flex:1;overflow:auto;padding:16px}
.ev-cart-side .item{
  display:flex;gap:12px;padding:10px;border-bottom:1px solid #eee;
}
.ev-cart-side .item img{width:60px;height:60px;object-fit:contain;background:#f6f6f6;border-radius:8px}
.ev-cart-side .item h6{font-size:.9rem;margin:0 0 4px}
.ev-cart-side .item .qty{font-size:.8rem;color:var(--ev-muted)}
.ev-cart-side .item .rm{margin-left:auto;background:none;border:0;color:var(--ev-danger)}
.ev-cart-side footer{padding:16px;border-top:1px solid #eee;background:#fafafa}
.ev-cart-side footer .total{display:flex;justify-content:space-between;font-weight:700;margin-bottom:10px}
.ev-cart-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:1070;display:none}
.ev-cart-backdrop.open{display:block}

/* ---- Footer ---- */
.ev-footer{
  background:linear-gradient(180deg,#0b1c3d,#06112a);color:#cbd2e1;
  padding:60px 0 0;margin-top:60px;
}
.ev-footer h6{color:#fff;font-weight:700;margin-bottom:18px;letter-spacing:1px}
.ev-footer a{display:block;padding:4px 0;color:#cbd2e1;font-size:.9rem;transition:.2s}
.ev-footer a:hover{color:var(--ev-yellow);transform:translateX(3px)}
.ev-social a{
  display:inline-flex;width:38px;height:38px;border-radius:50%;
  background:rgba(255,255,255,.08);align-items:center;justify-content:center;margin-right:8px;color:#fff;
}
.ev-social a:hover{background:var(--ev-yellow);color:var(--ev-dark);transform:none}
.ev-copy{
  margin-top:40px;border-top:1px solid rgba(255,255,255,.08);
  padding:18px 0;text-align:center;font-size:.85rem;color:#9aa3b6;
}

/* ---- WhatsApp Float ---- */
.ev-whatsapp{
  position:fixed;bottom:24px;right:24px;z-index:1060;
  width:58px;height:58px;border-radius:50%;
  background:#25d366;color:#fff;display:flex;align-items:center;justify-content:center;
  font-size:1.7rem;box-shadow:0 10px 25px rgba(37,211,102,.4);
  animation:pulse 2s infinite;
}
@keyframes pulse{
  0%,100%{box-shadow:0 0 0 0 rgba(37,211,102,.5)}
  50%{box-shadow:0 0 0 14px rgba(37,211,102,0)}
}

/* ---- Forms / Auth ---- */
.ev-auth-wrap{
  min-height:calc(100vh - 70px);
  background:linear-gradient(135deg,#0b1c3d,#1e4ca8);
  display:flex;align-items:center;justify-content:center;padding:40px 0;
}
.ev-auth-card{
  background:#fff;border-radius:16px;box-shadow:0 30px 60px rgba(0,0,0,.25);
  padding:40px;max-width:460px;width:100%;
}
.ev-auth-card h3{font-weight:800;color:var(--ev-dark)}
.ev-auth-card .form-control{height:46px;border-radius:8px}
.ev-auth-card .btn-primary{
  background:var(--ev-yellow);color:var(--ev-dark);border:0;
  font-weight:700;height:46px;border-radius:8px;
}
.ev-auth-card .btn-primary:hover{background:var(--ev-yellow-hover);color:var(--ev-dark)}

/* ---- Admin layout ---- */
.ev-admin{display:flex;min-height:100vh;background:#f3f5fa}
.ev-sidebar{
  width:250px;background:linear-gradient(180deg,#0b1c3d,#102a64);
  color:#cbd2e1;padding:20px 0;position:sticky;top:0;height:100vh;
  display:flex;flex-direction:column;transition:.3s;
}
.ev-sidebar .brand{padding:0 22px 22px;border-bottom:1px solid rgba(255,255,255,.08);color:#fff;font-weight:800;letter-spacing:1px;display:flex;align-items:center;gap:10px}
.ev-sidebar nav{padding:14px 10px;flex:1;overflow:auto}
.ev-sidebar nav a{
  display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:8px;
  margin-bottom:4px;color:#cbd2e1;font-size:.92rem;transition:.2s;
}
.ev-sidebar nav a:hover{background:rgba(255,255,255,.06);color:#fff}
.ev-sidebar nav a.active{background:var(--ev-yellow);color:var(--ev-dark);font-weight:700}
.ev-sidebar .foot{padding:14px 18px;border-top:1px solid rgba(255,255,255,.08);font-size:.8rem;color:#7d88a3}
.ev-admin-main{flex:1;display:flex;flex-direction:column;min-width:0}
.ev-admin-top{
  background:#fff;padding:14px 24px;display:flex;justify-content:space-between;align-items:center;
  border-bottom:1px solid #eef0f5;position:sticky;top:0;z-index:10;
}
.ev-admin-content{padding:24px}
.ev-stat-card{
  background:#fff;border-radius:14px;padding:20px;box-shadow:var(--ev-shadow);
  display:flex;justify-content:space-between;align-items:center;transition:.3s;
}
.ev-stat-card:hover{transform:translateY(-4px);box-shadow:var(--ev-shadow-hover)}
.ev-stat-card .ico{
  width:54px;height:54px;border-radius:14px;color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:1.3rem;
}
.ev-stat-card h3{font-weight:800;color:var(--ev-dark);margin:0}
.ev-stat-card small{color:var(--ev-muted)}
.bg-blue{background:linear-gradient(135deg,#0f2a5e,#1e4ca8)}
.bg-orange{background:linear-gradient(135deg,#ff9900,#febd69)}
.bg-green{background:linear-gradient(135deg,#067d62,#1fbd86)}
.bg-pink{background:linear-gradient(135deg,#d6336c,#ff6584)}

.ev-card{
  background:#fff;border-radius:14px;box-shadow:var(--ev-shadow);
  padding:22px;
}
.ev-card h5{font-weight:700;color:var(--ev-dark);margin-bottom:18px}

.ev-table{width:100%;border-collapse:collapse}
.ev-table th,.ev-table td{padding:12px;border-bottom:1px solid #eef0f5;text-align:left;font-size:.9rem}
.ev-table th{background:#f6f8fc;color:var(--ev-dark);font-weight:700}
.ev-status{padding:4px 10px;border-radius:50px;font-size:.75rem;font-weight:700}
.status-paid{background:#e3f9ec;color:#067d62}
.status-pending{background:#fff5e0;color:#b46a00}
.status-shipped{background:#e0ecff;color:#0f2a5e}
.status-cancel{background:#fde2e2;color:#b12704}

/* ---- Filters ---- */
.ev-filter{
  background:#fff;border-radius:14px;box-shadow:var(--ev-shadow);padding:20px;position:sticky;top:90px;
}
.ev-filter h6{font-weight:800;color:var(--ev-dark);margin-bottom:14px}

/* ---- Responsive ---- */
@media (max-width:991px){
  .ev-sidebar{position:fixed;left:-260px;z-index:1090}
  .ev-sidebar.open{left:0}
  .ev-search{order:5;width:100%;margin-top:10px}
}
@media (max-width:575px){
  .ev-hero{padding:60px 0}
  .ev-section{padding:50px 0}
  .ev-product .img-wrap{height:170px}
}

/* utility */
.cursor-pointer{cursor:pointer}
.text-yellow{color:var(--ev-yellow)!important}
.bg-ev-dark{background:var(--ev-dark)!important;color:#fff}
