/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/*=============== ROOT THEME ===============*/
:root{
  /* ===== Dynamic (ThemeService) ===== */
  --background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  --footerGradient: linear-gradient(180deg, #6EC6FF 0%, #1E88E5 100%);
  --primary: #1E88E5;
  --text: #52605F;
  --icon: #1E88E5;

  /* ===== Static ===== */
  --bg: #f6f8fb;
  --card: #ffffff;
  --muted: #6b7280;
  --glass: rgba(255,255,255,0.6);
}

/*=============== GLOBAL ===============*/
*{box-sizing:border-box}

html, body{
  height:100%;
  margin:0;
  font-family:'Poppins', ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

body{
  background: var(--background);
  display:flex;
  flex-direction:column;
  min-height:100vh;
  color: var(--text);
}

/*=============== HEADER ===============*/
.site-header{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px 0;
  gap:12px;
  background: var(--header);
  color:#ffffff;
  box-shadow:0 6px 18px rgba(8,15,52,0.08);
}

.site-header .container{
  width:calc(100% - 32px);
  max-width:1100px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo{
  width:44px;
  height:44px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:linear-gradient(
    135deg,
    rgba(255,255,255,0.18),
    rgba(255,255,255,0.08)
  );
  box-shadow:0 4px 10px rgba(2,6,23,0.12) inset;
  font-weight:700;
  font-size:18px;
}

.brand h1{
  margin:0;
  font-size:18px;
  line-height:1;
}

.tagline{
  font-size:12px;
  opacity:.9;
}

/*=============== MENU BUTTON (UNCHANGED) ===============*/
.menu-btn{
  background:transparent;
  border:0;
  padding:8px;
  border-radius:8px;
  display:grid;
  place-items:center;
  cursor:pointer;
  color:#ffffff;
}

/*=============== DROPDOWNS ===============*/
.dropdown{
  position:absolute;
  min-width:180px;
  background:var(--card);
  box-shadow:0 12px 30px rgba(2,6,23,0.12);
  border-radius:10px;
  padding:6px;
  display:none;
  flex-direction:column;
  gap:4px;
  z-index:60;
}

.menu-dropdown{left:0;top:56px;}
.user-dropdown{right:0;top:56px;}

.dropdown a{
  padding:6px 10px;
  border-radius:8px;
  text-decoration:none;
  color:#374151;
  font-size:14px;
}

.dropdown a:hover{background:#f3f4f6;}

.dropdown hr{
  border:0;
  height:1px;
  background:rgba(2,6,23,0.06);
  margin:2px 0;
}

.dropdown.show{display:flex;}

/*=============== DESKTOP NAV ===============*/
.desktop-nav{
  display:none;
  max-width:1100px;
  margin:0 auto;
  padding:8px 16px;
  justify-content:space-between;
  gap:20px;
}

.desktop-nav .nav-item{
  text-decoration:none;
  color:var(--bordertext);
  font-size:15px;
  padding:6px 10px;
  border-radius:6px;
}

.desktop-nav .nav-item:hover{
  background:#ffffff;
  color:#000000;
}

/*=============== MAIN ===============*/
main{
  flex:1;
  max-width:1100px;
  margin:16px auto;
  width:calc(100% - 32px);
}

.section{margin-bottom:32px;}

.section h2{
  margin-bottom:16px;
  color: var(--sectiontitle);
  font-size:1.5rem;
}

/*=============== GRID & LIST ===============*/
.grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
}

.list{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:12px;
}

@media(min-width:1024px){
  .list{grid-template-columns:repeat(3,1fr)}
}

/*=============== CARD ===============*/
.card{
  --bs-card-bg: transparent;
  border-radius:12px;
  padding:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  text-align:center;
  transition:transform .18s ease, box-shadow .18s ease;
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:0 12px 28px rgba(15,23,42,0.12);
}

.card .icon{
  width:56px;
  height:56px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background: var(--background);
  color:#ffffff;
}

.card p{
  margin:0;
  font-size:14px;
  color: var(--text);
}

.card-img-top{
  width:100%;
  max-height:200px;
  object-fit:contain;
  padding:10px;
}

/*=============== FOOTER ===============*/
.site-footer{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background: var(--footer);
  border-top:1px solid #eef2f6;
  /* box-shadow:0 -6px 18px rgba(2,6,23,0.04); */
  display:flex;
  justify-content:space-around;
  padding:10px 6px;
  align-items:center;
  z-index:50;
}

.menu-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-decoration:none;
  color: var(--text);
  font-size:12px;
  gap:6px;
}

.menu-item.active{color: var(--primary);}

.menu-item svg{
  width:20px;
  height:20px;
  fill: var(--icon);
  color: var(--icon);
  stroke-width: 1.5;
}

/*=============== UTIL TEXT ===============*/
.actualprice{font-weight:900;}
.maxprice{
  font-size:small;
  text-decoration:line-through;
  color:var(--muted);
}
.unit{
  font-size:small;
  color:var(--muted);
}

/*=============== RESPONSIVE ===============*/
@media(min-width:1024px){
  .site-footer{display:none!important;}
  .desktop-nav{display:flex!important;}
}

@media(max-width:1000px){
  .grid{grid-template-columns:repeat(3,1fr)}
}

@media(max-width:700px){
  .grid{grid-template-columns:repeat(2,1fr)}
  .list{grid-template-columns:1fr}
  .brand h1{font-size:16px}
}

@media(max-width:420px){
  .grid{gap:10px}
  .card .icon{width:48px;height:48px}
  .logo{width:40px;height:40px}
}
.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl {
    width: 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important;
}
